diff options
author | Chris Ward <chris@chrisgward.com> | 2013-01-09 20:10:22 +1100 |
---|---|---|
committer | Chris Ward <chris@chrisgward.com> | 2013-01-09 20:10:22 +1100 |
commit | 9222be9145c56c338c11203205f0a41f82d120e4 (patch) | |
tree | 8aed220153515adefe69d2b2a04e635d88b42684 | |
parent | 0177eca6e070af9ec1ae991b9823d62740cee861 (diff) | |
download | Essentials-9222be9145c56c338c11203205f0a41f82d120e4.tar Essentials-9222be9145c56c338c11203205f0a41f82d120e4.tar.gz Essentials-9222be9145c56c338c11203205f0a41f82d120e4.tar.lz Essentials-9222be9145c56c338c11203205f0a41f82d120e4.tar.xz Essentials-9222be9145c56c338c11203205f0a41f82d120e4.zip |
Log target plugin in debug mode for altcmd
617959a11b23e0fe38d82be34247d71e9fcb525a
-rw-r--r-- | Essentials/src/net/ess3/commands/EssentialsCommandHandler.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Essentials/src/net/ess3/commands/EssentialsCommandHandler.java b/Essentials/src/net/ess3/commands/EssentialsCommandHandler.java index 55c43ade2..3f69613e8 100644 --- a/Essentials/src/net/ess3/commands/EssentialsCommandHandler.java +++ b/Essentials/src/net/ess3/commands/EssentialsCommandHandler.java @@ -61,7 +61,7 @@ public class EssentialsCommandHandler implements ICommandHandler, TabExecutor if (pc != null) { - executed(commandLabel, pc.getLabel()); + executed(commandLabel, pc); try { return pc.execute(sender, commandLabel, args); @@ -193,7 +193,7 @@ public class EssentialsCommandHandler implements ICommandHandler, TabExecutor if (pc != null) { - executed(commandLabel, pc.getLabel()); + executed(commandLabel, pc); try { return pc.tabComplete(sender, commandLabel, args); @@ -404,13 +404,14 @@ public class EssentialsCommandHandler implements ICommandHandler, TabExecutor return pcommands.get(0); } - public void executed(final String label, final String otherLabel) + public void executed(final String label, final PluginCommand pc) { + final String altString = pc.getPlugin().getName() + ":" + pc.getLabel(); if (ess.getSettings().isDebug()) { - LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + otherLabel); + LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + altString); } - disabledList.put(label, otherLabel); + disabledList.put(label, altString); } @Override |