patch skiddie exploit

This commit is contained in:
ChomeNS
2023-05-01 07:30:39 +07:00
parent a37d938db3
commit bb7a156084
2 changed files with 33 additions and 33 deletions

View File

@@ -32,6 +32,8 @@ public class ChatCommandHandlerPlugin extends ChatPlugin.ChatListener {
public void commandSpyMessageReceived (PlayerMessage message) { listener(message, true); }
private void listener (PlayerMessage message, boolean cspy) {
if (message.sender().profile().getName().equals(bot.username())) return;
final Component displayNameComponent = message.displayName();
final Component messageComponent = message.contents();
if (displayNameComponent == null || messageComponent == null) return;