diff options
author | stevenh <steven.hartland@multiplay.co.uk> | 2011-03-12 17:51:57 +0000 |
---|---|---|
committer | stevenh <steven.hartland@multiplay.co.uk> | 2011-03-12 17:51:57 +0000 |
commit | e4a1008f8a326b8582fd56581240938e3e66cafa (patch) | |
tree | 16006f421bfcfcf7092d5799296179f43d0651fc /src | |
parent | 6da67f1ea6282560426a9a5282c6244858cb250a (diff) | |
download | bukkit-e4a1008f8a326b8582fd56581240938e3e66cafa.tar bukkit-e4a1008f8a326b8582fd56581240938e3e66cafa.tar.gz bukkit-e4a1008f8a326b8582fd56581240938e3e66cafa.tar.lz bukkit-e4a1008f8a326b8582fd56581240938e3e66cafa.tar.xz bukkit-e4a1008f8a326b8582fd56581240938e3e66cafa.zip |
Removed unneeded string constant concat
Note: editor removed spaces on otherwise empty lines
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(); |