From 7f1ee77a6924a75e8dbcd710efaafa5b4c5dd9a2 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 30 Jul 2020 06:03:29 -0400 Subject: [PATCH] Fix accidential breaking change not allowing aliases to be overridden. --- .../velocitypowered/proxy/command/VelocityCommandManager.java | 2 -- 1 file changed, 2 deletions(-) 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 b8f511ea7..99c882aa5 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java @@ -112,8 +112,6 @@ public class VelocityCommandManager implements CommandManager { dispatcher.getRoot().addChild(node); while (aliasIterator.hasNext()) { String otherAlias = aliasIterator.next(); - Preconditions.checkArgument(!hasCommand(otherAlias), - "alias %s is already registered", otherAlias); dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node)); } }