From 933c81b9bfaae87c41e9fb494471eda83a7f8623 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 31 Jul 2020 10:58:27 -0400 Subject: [PATCH] Fix legacy register command not allowing command overrides --- .../velocitypowered/proxy/command/VelocityCommandManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java b/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java index 072c45634..00d0cc469 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java @@ -60,7 +60,6 @@ public class VelocityCommandManager implements CommandManager { Preconditions.checkNotNull(alias, "alias"); Preconditions.checkNotNull(command, "command"); Preconditions.checkNotNull(otherAliases, "otherAliases"); - Preconditions.checkArgument(!hasCommand(alias), "alias already registered"); register(metaBuilder(alias).aliases(otherAliases).build(), command); }