From 6677f75c5265b7bdfd6c51fb5fab0998c28dc0ca Mon Sep 17 00:00:00 2001 From: ementalo Date: Mon, 18 Jun 2012 11:58:14 +0100 Subject: [PATCH] Fix /essentials command to not show command debugging if there were no conflicts --- .../com/earth2me/essentials/commands/Commandessentials.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java index 84e439e6d..c6b0967c0 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java @@ -60,7 +60,11 @@ 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 CommandSender sender, final String commandLabel, final String[] args) throws Exception