Search in sources :

Example 1 with AntiPeskListener

use of com.skelril.skree.content.aid.AntiPeskListener in project Skree by Skelril.

the class AidSystem method init.

@NModuleTrigger(trigger = "SERVER_STARTED")
public void init() {
    try {
        AntiPeskConfig config = ConfigLoader.loadConfig("anti_pesk.json", AntiPeskConfig.class);
        Sponge.getEventManager().registerListeners(SkreePlugin.inst(), new ChatCommandAid());
        Sponge.getEventManager().registerListeners(SkreePlugin.inst(), new AntiPeskListener(config));
    } catch (IOException e) {
        e.printStackTrace();
    }
}
Also used : AntiPeskListener(com.skelril.skree.content.aid.AntiPeskListener) IOException(java.io.IOException) ChatCommandAid(com.skelril.skree.content.aid.ChatCommandAid) NModuleTrigger(com.skelril.nitro.module.NModuleTrigger)

Aggregations

NModuleTrigger (com.skelril.nitro.module.NModuleTrigger)1 AntiPeskListener (com.skelril.skree.content.aid.AntiPeskListener)1 ChatCommandAid (com.skelril.skree.content.aid.ChatCommandAid)1 IOException (java.io.IOException)1