From ceaf3f0c4acc4710b75dcc693534564a611ee43a Mon Sep 17 00:00:00 2001 From: FirephoenixX02 Date: Thu, 6 Jun 2024 17:27:32 +0200 Subject: [PATCH] Add (Command) to command logging --- .../velocitylogging/listener/ChatCommandListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/firephoenix/velocitylogging/listener/ChatCommandListener.java b/src/main/java/me/firephoenix/velocitylogging/listener/ChatCommandListener.java index f88a8cf..116c75b 100644 --- a/src/main/java/me/firephoenix/velocitylogging/listener/ChatCommandListener.java +++ b/src/main/java/me/firephoenix/velocitylogging/listener/ChatCommandListener.java @@ -23,7 +23,7 @@ public class ChatCommandListener { public void onCommand(CommandExecuteEvent event) { if (!(event.getCommandSource() instanceof Player player)) return; - VelocityLogging.INSTANCE.addToLogFile(event.getCommand(), player.getUsername(), player.getCurrentServer().isEmpty() ? "Unknown" : player.getCurrentServer().get().getServerInfo().getName()); + VelocityLogging.INSTANCE.addToLogFile("(Command)" + event.getCommand(), player.getUsername(), player.getCurrentServer().isEmpty() ? "Unknown" : player.getCurrentServer().get().getServerInfo().getName()); } }