Add logging to ChatListener

This commit is contained in:
2024-08-06 17:13:52 +02:00
parent bab3580f56
commit ea7ce3393f
@@ -56,6 +56,7 @@ public class ChatListener extends BasicListener {
@Subscribe(order = PostOrder.FIRST)
public void fixCommands(CommandExecuteEvent e) {
System.out.println(e);
String command = e.getCommand();
if(command.startsWith("7")) {
command = "/" + command.substring(1);
@@ -72,6 +73,7 @@ public class ChatListener extends BasicListener {
@Subscribe(order = PostOrder.LAST)
public void logCommands(CommandExecuteEvent e) {
System.out.println(e);
String command = e.getCommand();
int space = command.indexOf(' ');
if(VelocityCore.getProxy().getCommandManager().hasCommand(space != -1 ? command.substring(0, space) : command)) {