Add ALogger

This commit is contained in:
len
2021-05-15 13:52:02 +02:00
parent f5066d4a9e
commit 47fd6bf2db
5 changed files with 37 additions and 4 deletions
@@ -5,6 +5,7 @@ import com.alttd.chat.config.Config;
import com.alttd.chat.handler.ChatHandler;
import com.alttd.chat.listeners.PlayerListener;
import com.alttd.chat.listeners.PluginMessage;
import com.alttd.chat.util.ALogger;
import org.bukkit.command.CommandExecutor;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
@@ -21,6 +22,7 @@ public class ChatPlugin extends JavaPlugin {
@Override
public void onEnable() {
instance = this;
new ALogger(this.getSLF4JLogger());
chatAPI = new ChatImplementation();
chatHandler = new ChatHandler();
registerListener(new PlayerListener());
@@ -25,6 +25,7 @@ public class ChatHandler {
}
public void globalChat(CommandSender source, String message) {
// Check if the player has global chat enabled, if not warn them
String senderName, prefix = "";
Player sender = (Player) source;