summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/command/SimpleCommandMap.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/command/SimpleCommandMap.java')
-rw-r--r--src/main/java/org/bukkit/command/SimpleCommandMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java
index 4d475c62..58313701 100644
--- a/src/main/java/org/bukkit/command/SimpleCommandMap.java
+++ b/src/main/java/org/bukkit/command/SimpleCommandMap.java
@@ -95,7 +95,7 @@ public class SimpleCommandMap implements CommandMap {
*/
private synchronized boolean register(String label, Command command, boolean isAlias, String fallbackPrefix) {
knownCommands.put(fallbackPrefix + ":" + label, command);
- if ((command instanceof VanillaCommand || isAlias) && knownCommands.containsKey(label)) {
+ if (isAlias && knownCommands.containsKey(label)) {
// Request is for an alias/fallback command and it conflicts with
// a existing command or previous alias ignore it
// Note: This will mean it gets removed from the commands list of active aliases