Add (Command) to command logging
This commit is contained in:
parent
8c581d0973
commit
ceaf3f0c4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue