summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-06-10 22:46:56 +0100
committerKHobbits <rob@khobbits.co.uk>2012-06-10 22:46:56 +0100
commit4f69427c6319efd7f4f70de9e98d43c76c439fdf (patch)
treef3d995bd3a0b974a4a6703abe7f9898b2fabb8dd
parentbdd64da24920a041950a43cbcd3a019d41ad300a (diff)
downloadEssentials-4f69427c6319efd7f4f70de9e98d43c76c439fdf.tar
Essentials-4f69427c6319efd7f4f70de9e98d43c76c439fdf.tar.gz
Essentials-4f69427c6319efd7f4f70de9e98d43c76c439fdf.tar.lz
Essentials-4f69427c6319efd7f4f70de9e98d43c76c439fdf.tar.xz
Essentials-4f69427c6319efd7f4f70de9e98d43c76c439fdf.zip
Fix /essentials command to not show command debugging if there were no conflicts.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandessentials.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
index ca746c5a8..2a89dcd42 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java
@@ -57,7 +57,7 @@ public class Commandessentials extends EssentialsCommand
{
sender.sendMessage("Essentials " + ess.getDescription().getVersion());
sender.sendMessage("/<command> <reload/debug>");
- sender.sendMessage(_("blockList"));
+
final StringBuilder disabledCommands = new StringBuilder();
for (Map.Entry<String, String> entry : ess.getAlternativeCommandsHandler().disabledCommands().entrySet())
{
@@ -66,7 +66,10 @@ public class Commandessentials extends EssentialsCommand
}
disabledCommands.append(entry.getKey()).append(" => ").append(entry.getValue());
}
- sender.sendMessage(disabledCommands.toString());
+ if (disabledCommands.length() > 0) {
+ sender.sendMessage(_("blockList"));
+ sender.sendMessage(disabledCommands.toString());
+ }
}
private void run_debug(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception