summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-25 14:02:40 +0100
committersnowleo <schneeleo@gmail.com>2011-11-25 14:02:40 +0100
commit3daf56c8bea5280c05c7791a700b84bb2abbddaf (patch)
treeec976c10045a1d82b362b4c1d32d82b3c6b5bacd
parent223028f306b0021f83de38d8a0770fdc82579d8c (diff)
downloadEssentials-3daf56c8bea5280c05c7791a700b84bb2abbddaf.tar
Essentials-3daf56c8bea5280c05c7791a700b84bb2abbddaf.tar.gz
Essentials-3daf56c8bea5280c05c7791a700b84bb2abbddaf.tar.lz
Essentials-3daf56c8bea5280c05c7791a700b84bb2abbddaf.tar.xz
Essentials-3daf56c8bea5280c05c7791a700b84bb2abbddaf.zip
Another safety check
-rw-r--r--Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java
index 5fc2e23de..a9291e629 100644
--- a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java
+++ b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java
@@ -44,7 +44,7 @@ public class AlternativeCommandsHandler
{
reg = ess.getServer().getPluginCommand(pc.getName().toLowerCase(Locale.ENGLISH));
}
- if (reg == null)
+ if (reg == null || !reg.getPlugin().equals(plugin))
{
continue;
}