diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/command/SimpleCommandMap.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java index 9bd8529c..777996df 100644 --- a/src/main/java/org/bukkit/command/SimpleCommandMap.java +++ b/src/main/java/org/bukkit/command/SimpleCommandMap.java @@ -196,16 +196,16 @@ public final class SimpleCommandMap implements CommandMap { server.reload(); sender.sendMessage(ChatColor.GREEN + "Reload complete."); } else { - sender.sendMessage(ChatColor.RED + "You do not have sufficient access" + " to reload this server."); + sender.sendMessage(ChatColor.RED + "You do not have sufficient access to reload this server."); } return true; } } - + private static class PluginsCommand extends Command { - + private final Server server; - + public PluginsCommand(String name, Server server) { super(name); this.server = server; @@ -213,13 +213,13 @@ public final class SimpleCommandMap implements CommandMap { this.usageMessage = "/plugins"; this.setAliases(Arrays.asList("pl")); } - + @Override public boolean execute(CommandSender sender, String currentAlias, String[] args) { sender.sendMessage("Plugins: " + getPluginList()); return true; } - + private String getPluginList() { StringBuilder pluginList = new StringBuilder(); Plugin[] plugins = server.getPluginManager().getPlugins(); |