Cleanup2: The Revenge

This commit is contained in:
Gabriele C
2015-11-02 00:09:34 +01:00
parent da9cfc93d3
commit 5e7c5560cf
22 changed files with 30 additions and 30 deletions
@@ -52,7 +52,7 @@ public class CommandManager {
/**
* Register all commands.
*/
@SuppressWarnings("SpellCheckingInspection")
@SuppressWarnings({ "SpellCheckingInspection", "serial" })
public void registerCommands() {
// Register the base AuthMe Reloaded command
CommandDescription authMeBaseCommand = new CommandDescription(
@@ -34,7 +34,7 @@ public class ReloadCommand extends ExecutableCommand {
Messages m = Messages.getInstance();
// Show a status message
//sender.sendMessage(ChatColor.YELLOW + "Reloading AuthMeReloaded...");
// sender.sendMessage(ChatColor.YELLOW + "Reloading AuthMeReloaded...");
try {
Settings.reload();
@@ -49,10 +49,11 @@ public class ReloadCommand extends ExecutableCommand {
}
// Show a status message
// TODO: add the profiler result
m.send(sender, "reload");
// AuthMeReloaded reloaded, show a status message
//sender.sendMessage(ChatColor.GREEN + "AuthMeReloaded has been reloaded successfully, took " + p.getTimeFormatted() + "!");
// sender.sendMessage(ChatColor.GREEN + "AuthMeReloaded has been reloaded successfully, took " + p.getTimeFormatted() + "!");
return true;
}
}
@@ -11,7 +11,6 @@ import org.bukkit.scheduler.BukkitTask;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.ConsoleLogger;
import fr.xephi.authme.util.Utils;
import fr.xephi.authme.cache.auth.PlayerCache;
import fr.xephi.authme.cache.limbo.LimboCache;
import fr.xephi.authme.command.CommandParts;
@@ -21,6 +20,7 @@ import fr.xephi.authme.settings.Messages;
import fr.xephi.authme.settings.Settings;
import fr.xephi.authme.task.MessageTask;
import fr.xephi.authme.task.TimeoutTask;
import fr.xephi.authme.util.Utils;
public class UnregisterCommand extends ExecutableCommand {