diff options
author | md_5 <git@md-5.net> | 2017-05-14 12:00:00 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-05-14 12:00:00 +1000 |
commit | a1cc4b769caf690b2f075f833c83e76d6431f9a7 (patch) | |
tree | c799028e2f53971dd9dc12be21b2d8d59af30aed /src/main/java/org/bukkit/command/SimpleCommandMap.java | |
parent | c185dd58fea5f4ce4b2dc3c135c7ff550f4936b0 (diff) | |
download | bukkit-a1cc4b769caf690b2f075f833c83e76d6431f9a7.tar bukkit-a1cc4b769caf690b2f075f833c83e76d6431f9a7.tar.gz bukkit-a1cc4b769caf690b2f075f833c83e76d6431f9a7.tar.lz bukkit-a1cc4b769caf690b2f075f833c83e76d6431f9a7.tar.xz bukkit-a1cc4b769caf690b2f075f833c83e76d6431f9a7.zip |
Remove Bukkit reimplimentations of Vanilla commands.
Diffstat (limited to 'src/main/java/org/bukkit/command/SimpleCommandMap.java')
-rw-r--r-- | src/main/java/org/bukkit/command/SimpleCommandMap.java | 2 |
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 |