use of com.skelril.skree.service.internal.playerstate.PlayerStateServiceImpl in project Skree by Skelril.
the class PlayerStateSystem method init.
@NModuleTrigger(trigger = "SERVER_STARTED")
public void init() {
service = new PlayerStateServiceImpl();
// Register the service & command
Sponge.getServiceManager().setProvider(SkreePlugin.inst(), PlayerStateService.class, service);
Sponge.getEventManager().registerListeners(SkreePlugin.inst(), service);
Sponge.getCommandManager().removeMapping(Sponge.getCommandManager().get("gamemode").get());
Sponge.getCommandManager().register(SkreePlugin.inst(), GameModeCommand.aquireSpec(), "gamemode", "gm");
}
Aggregations