Search in sources :

Example 1 with PlayerStateServiceImpl

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");
}
Also used : PlayerStateServiceImpl(com.skelril.skree.service.internal.playerstate.PlayerStateServiceImpl) NModuleTrigger(com.skelril.nitro.module.NModuleTrigger)

Aggregations

NModuleTrigger (com.skelril.nitro.module.NModuleTrigger)1 PlayerStateServiceImpl (com.skelril.skree.service.internal.playerstate.PlayerStateServiceImpl)1