From 1601ea07a8eec53c4f0dffcc44f5f0db3fa75082 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 14 Aug 2018 00:39:19 +1000 Subject: [PATCH] Clear the command/method map after registration --- .../com/sk89q/worldedit/extension/platform/CommandManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java index 1147d03cc..0cf0590f5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java @@ -244,6 +244,9 @@ public final class CommandManager { } } + commandMap.clear(); + methodMap.clear(); + dispatcher = graph .group("/anvil") .describeAs("Anvil command")