diff --git a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java index 279e121e..98e70290 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java +++ b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java @@ -56,7 +56,7 @@ public class ChatListener extends BasicListener { @Subscribe(order = PostOrder.FIRST) public void fixCommands(CommandExecuteEvent e) { - System.out.println(e); + System.out.println("fixCommands " + e); String command = e.getCommand(); if(command.startsWith("7")) { command = "/" + command.substring(1); @@ -73,7 +73,7 @@ public class ChatListener extends BasicListener { @Subscribe(order = PostOrder.LAST) public void logCommands(CommandExecuteEvent e) { - System.out.println(e); + System.out.println("logCommands " + e); String command = e.getCommand(); int space = command.indexOf(' '); if(VelocityCore.getProxy().getCommandManager().hasCommand(space != -1 ? command.substring(0, space) : command)) { @@ -88,6 +88,7 @@ public class ChatListener extends BasicListener { cmdLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command)); } else if (e.getCommandSource() instanceof Player player) { + System.out.println("spoofChatInput " + e); player.spoofChatInput("/" + command); e.setResult(CommandExecuteEvent.CommandResult.denied()); }