diff --git a/Essentials/src/main/java/com/earth2me/essentials/AlternativeCommandsHandler.java b/Essentials/src/main/java/com/earth2me/essentials/AlternativeCommandsHandler.java index 455c7ae5e..8657dffd6 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/AlternativeCommandsHandler.java +++ b/Essentials/src/main/java/com/earth2me/essentials/AlternativeCommandsHandler.java @@ -92,7 +92,7 @@ public class AlternativeCommandsHandler { public void executed(final String label, final Command pc) { if (pc instanceof PluginIdentifiableCommand) { - final String altString = ((PluginIdentifiableCommand) pc).getPlugin().getName() + ":" + pc.getLabel(); + final String altString = ((PluginIdentifiableCommand) pc).getPlugin().getName() + ":" + pc.getName(); if (ess.getSettings().isDebug()) { LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + altString); } diff --git a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java index 537599abc..902599bcd 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java @@ -581,12 +581,12 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials { if (pc != null) { alternativeCommandsHandler.executed(commandLabel, pc); try { - return pc.execute(cSender, commandLabel, args); + pc.execute(cSender, commandLabel, args); } catch (final Exception ex) { Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex); cSender.sendMessage(tl("internalError")); - return true; } + return true; } }