From 2c532f4d8847d05816cce27610964879b14ff749 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 18 Jan 2011 01:54:48 +0100 Subject: [PATCH] Fixed minor bug with alias registration and removed debug output By: VictorD --- .../src/main/java/org/bukkit/command/SimpleCommandMap.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java index a0617ee3fb..3858408176 100644 --- a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java +++ b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java @@ -33,13 +33,11 @@ public final class SimpleCommandMap implements CommandMap { * {@inheritDoc} */ public boolean register(String name, String fallbackPrefix, Command command) { - boolean nameInUse = (knownCommands.get(command.getName()) != null); + boolean nameInUse = (knownCommands.get(name) != null); if (nameInUse) name = fallbackPrefix + ":" + name; knownCommands.put(name, command); - System.out.println("Adding cmd: " + name + " for plugin " + fallbackPrefix); - return !nameInUse; }