Search in sources :

Example 1 with ChatCommands

use of org.cubeengine.module.chat.command.ChatCommands in project modules-extra by CubeEngine.

the class Chat method onEnable.

@Listener
public void onEnable(GamePreInitializationEvent event) {
    AfkCommand afkCmd = new AfkCommand(this, config.autoAfk.after.toMillis(), config.autoAfk.check.toMillis(), bc, tm, em);
    cm.addCommands(this, afkCmd);
    cm.addCommands(this, new ChatCommands(this, i18n, bc, afkCmd));
}
Also used : AfkCommand(org.cubeengine.module.chat.command.AfkCommand) ChatCommands(org.cubeengine.module.chat.command.ChatCommands) ChatFormatListener(org.cubeengine.module.chat.listener.ChatFormatListener) ModuleListener(org.cubeengine.libcube.service.event.ModuleListener) Listener(org.spongepowered.api.event.Listener)

Aggregations

ModuleListener (org.cubeengine.libcube.service.event.ModuleListener)1 AfkCommand (org.cubeengine.module.chat.command.AfkCommand)1 ChatCommands (org.cubeengine.module.chat.command.ChatCommands)1 ChatFormatListener (org.cubeengine.module.chat.listener.ChatFormatListener)1 Listener (org.spongepowered.api.event.Listener)1