summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-12-14 15:07:08 +0100
committersnowleo <schneeleo@gmail.com>2011-12-14 15:07:08 +0100
commit58bebd851c9d0e73633648a11a85eafda57bc451 (patch)
treee90f87ea995c3202e0f288e32dc8c52921ad193f
parent9eaebadaaa3fd164b841dd8c99b03a162a632545 (diff)
downloadEssentials-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.java2
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)