mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Create CommandManagerService directly instead of service loading it.
This commit is contained in:
parent
018b6bead8
commit
f279907616
@ -109,6 +109,7 @@ import org.enginehub.piston.exception.CommandExecutionException;
|
|||||||
import org.enginehub.piston.exception.ConditionFailedException;
|
import org.enginehub.piston.exception.ConditionFailedException;
|
||||||
import org.enginehub.piston.exception.UsageException;
|
import org.enginehub.piston.exception.UsageException;
|
||||||
import org.enginehub.piston.gen.CommandRegistration;
|
import org.enginehub.piston.gen.CommandRegistration;
|
||||||
|
import org.enginehub.piston.impl.CommandManagerServiceImpl;
|
||||||
import org.enginehub.piston.inject.InjectedValueStore;
|
import org.enginehub.piston.inject.InjectedValueStore;
|
||||||
import org.enginehub.piston.inject.Key;
|
import org.enginehub.piston.inject.Key;
|
||||||
import org.enginehub.piston.inject.MapBackedValueStore;
|
import org.enginehub.piston.inject.MapBackedValueStore;
|
||||||
@ -164,8 +165,7 @@ public final class PlatformCommandManager {
|
|||||||
this.worldEdit = worldEdit;
|
this.worldEdit = worldEdit;
|
||||||
this.platformManager = platformManager;
|
this.platformManager = platformManager;
|
||||||
this.exceptionConverter = new WorldEditExceptionConverter(worldEdit);
|
this.exceptionConverter = new WorldEditExceptionConverter(worldEdit);
|
||||||
this.commandManager = DefaultCommandManagerService.getInstance()
|
this.commandManager = new CommandManagerServiceImpl().newCommandManager();
|
||||||
.newCommandManager();
|
|
||||||
this.globalInjectedValues = MapBackedValueStore.create();
|
this.globalInjectedValues = MapBackedValueStore.create();
|
||||||
this.registration = new CommandRegistrationHandler(
|
this.registration = new CommandRegistrationHandler(
|
||||||
ImmutableList.of(
|
ImmutableList.of(
|
||||||
|
Loading…
Reference in New Issue
Block a user