Fix legacy register command not allowing command overrides
This commit is contained in:
@@ -60,7 +60,6 @@ public class VelocityCommandManager implements CommandManager {
|
|||||||
Preconditions.checkNotNull(alias, "alias");
|
Preconditions.checkNotNull(alias, "alias");
|
||||||
Preconditions.checkNotNull(command, "command");
|
Preconditions.checkNotNull(command, "command");
|
||||||
Preconditions.checkNotNull(otherAliases, "otherAliases");
|
Preconditions.checkNotNull(otherAliases, "otherAliases");
|
||||||
Preconditions.checkArgument(!hasCommand(alias), "alias already registered");
|
|
||||||
register(metaBuilder(alias).aliases(otherAliases).build(), command);
|
register(metaBuilder(alias).aliases(otherAliases).build(), command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user