From b3e545a0c8eae43d96abfe5c969f9eb80ccd922a Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Wed, 25 Sep 2024 20:03:12 +0200 Subject: [PATCH] Log custom messages sent in custom channels Added a log statement to capture and log information whenever a message is sent in a custom channel. This includes the player's name, the channel name, and the message content for better monitoring and debugging. --- .../java/com/alttd/chat/util/ToggleableForCustomChannel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/galaxy/src/main/java/com/alttd/chat/util/ToggleableForCustomChannel.java b/galaxy/src/main/java/com/alttd/chat/util/ToggleableForCustomChannel.java index 405bfc7..e265a3e 100644 --- a/galaxy/src/main/java/com/alttd/chat/util/ToggleableForCustomChannel.java +++ b/galaxy/src/main/java/com/alttd/chat/util/ToggleableForCustomChannel.java @@ -41,6 +41,7 @@ public class ToggleableForCustomChannel extends Toggleable { new BukkitRunnable() { @Override public void run() { + ALogger.info(String.format("%s sent %s message: %s", player.getName(), customChannel.getChannelName(), message)); ChatPlugin.getInstance().getChatHandler().chatChannel(player, customChannel, message); } }.runTaskAsynchronously(ChatPlugin.getInstance());