This commit is contained in:
len
2021-06-13 13:53:49 +02:00
parent bfadd18020
commit a5c23d842d
24 changed files with 139 additions and 166 deletions
@@ -3,6 +3,7 @@ package com.alttd.chat;
import com.alttd.chat.commands.GlobalChat;
import com.alttd.chat.config.Config;
import com.alttd.chat.handler.ChatHandler;
import com.alttd.chat.listeners.ChatListener;
import com.alttd.chat.listeners.PlayerListener;
import com.alttd.chat.listeners.PluginMessage;
import com.alttd.chat.util.ALogger;
@@ -22,10 +23,10 @@ public class ChatPlugin extends JavaPlugin {
@Override
public void onEnable() {
instance = this;
new ALogger(this.getSLF4JLogger());
ALogger.init(getSLF4JLogger());
chatAPI = new ChatImplementation();
chatHandler = new ChatHandler();
registerListener(new PlayerListener());
registerListener(new PlayerListener(), new ChatListener());
registerCommand("globalchat", new GlobalChat());
messageChannel = Config.MESSAGECHANNEL;