From f279907616cb958f40cd0f6112580585cef782b5 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 4 May 2019 17:06:19 -0400 Subject: [PATCH] Create CommandManagerService directly instead of service loading it. --- .../worldedit/extension/platform/PlatformCommandManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 0e6420c4d..f5359b478 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -109,6 +109,7 @@ import org.enginehub.piston.exception.CommandExecutionException; import org.enginehub.piston.exception.ConditionFailedException; import org.enginehub.piston.exception.UsageException; import org.enginehub.piston.gen.CommandRegistration; +import org.enginehub.piston.impl.CommandManagerServiceImpl; import org.enginehub.piston.inject.InjectedValueStore; import org.enginehub.piston.inject.Key; import org.enginehub.piston.inject.MapBackedValueStore; @@ -164,8 +165,7 @@ public final class PlatformCommandManager { this.worldEdit = worldEdit; this.platformManager = platformManager; this.exceptionConverter = new WorldEditExceptionConverter(worldEdit); - this.commandManager = DefaultCommandManagerService.getInstance() - .newCommandManager(); + this.commandManager = new CommandManagerServiceImpl().newCommandManager(); this.globalInjectedValues = MapBackedValueStore.create(); this.registration = new CommandRegistrationHandler( ImmutableList.of(