Add (Command) to command logging

This commit is contained in:
FirephoenixX02 2024-06-06 17:27:32 +02:00
parent 8c581d0973
commit ceaf3f0c4a

View file

@ -23,7 +23,7 @@ public class ChatCommandListener {
public void onCommand(CommandExecuteEvent event) { public void onCommand(CommandExecuteEvent event) {
if (!(event.getCommandSource() instanceof Player player)) return; 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());
} }
} }