diff options
author | snowleo <schneeleo@gmail.com> | 2011-12-14 15:07:08 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-12-14 15:07:08 +0100 |
commit | 58bebd851c9d0e73633648a11a85eafda57bc451 (patch) | |
tree | e90f87ea995c3202e0f288e32dc8c52921ad193f | |
parent | 9eaebadaaa3fd164b841dd8c99b03a162a632545 (diff) | |
download | Essentials-58bebd851c9d0e73633648a11a85eafda57bc451.tar Essentials-58bebd851c9d0e73633648a11a85eafda57bc451.tar.gz Essentials-58bebd851c9d0e73633648a11a85eafda57bc451.tar.lz Essentials-58bebd851c9d0e73633648a11a85eafda57bc451.tar.xz Essentials-58bebd851c9d0e73633648a11a85eafda57bc451.zip |
Fix failing override for /enchant /eco /ext
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 5c0b1cdf8..e3971c747 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -294,7 +294,7 @@ public class Essentials extends JavaPlugin implements IEssentials public boolean onCommandEssentials(final CommandSender sender, final Command command, final String commandLabel, final String[] args, final ClassLoader classLoader, final String commandPath, final String permissionPrefix, final IEssentialsModule module) { // Allow plugins to override the command via onCommand - if (!getSettings().isCommandOverridden(command.getName()) && !commandLabel.startsWith("e")) + if (!getSettings().isCommandOverridden(command.getName()) && (!commandLabel.startsWith("e") || commandLabel.equalsIgnoreCase(command.getName()))) { final PluginCommand pc = alternativeCommandsHandler.getAlternative(commandLabel); if (pc != null) |