Search in sources :

Example 1 with ShutdownServiceImpl

use of com.skelril.skree.service.internal.shutdown.ShutdownServiceImpl in project Skree by Skelril.

the class ShutdownSystem method init.

@NModuleTrigger(trigger = "SERVER_STARTED")
public void init() {
    service = new ShutdownServiceImpl();
    // Register the service & command
    Sponge.getServiceManager().setProvider(SkreePlugin.inst(), ShutdownService.class, service);
    Sponge.getCommandManager().register(SkreePlugin.inst(), ShutdownCommand.aquireSpec(), "shutdown");
}
Also used : ShutdownServiceImpl(com.skelril.skree.service.internal.shutdown.ShutdownServiceImpl) NModuleTrigger(com.skelril.nitro.module.NModuleTrigger)

Aggregations

NModuleTrigger (com.skelril.nitro.module.NModuleTrigger)1 ShutdownServiceImpl (com.skelril.skree.service.internal.shutdown.ShutdownServiceImpl)1