forked from SteamWar/SteamWar
Possible hotfix ChatListener
This commit is contained in:
@@ -89,8 +89,9 @@ public class ChatListener extends BasicListener {
|
|||||||
cmdLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
|
cmdLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
|
||||||
} else if (e.getCommandSource() instanceof Player player) {
|
} else if (e.getCommandSource() instanceof Player player) {
|
||||||
System.out.println("spoofChatInput " + e);
|
System.out.println("spoofChatInput " + e);
|
||||||
player.spoofChatInput("/" + command);
|
// player.spoofChatInput("/" + command);
|
||||||
e.setResult(CommandExecuteEvent.CommandResult.denied());
|
// e.setResult(CommandExecuteEvent.CommandResult.denied());
|
||||||
|
e.setResult(CommandExecuteEvent.CommandResult.forwardToServer(e.getCommand()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user