From ea7ce3393f3035513a8419eeef3bb2201f1a0ff0 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Tue, 6 Aug 2024 17:13:52 +0200 Subject: [PATCH] Add logging to ChatListener --- .../src/de/steamwar/velocitycore/listeners/ChatListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java index 4128c671..279e121e 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java +++ b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java @@ -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)) {