Fully sanitize IP join messages

This commit is contained in:
Business Goose 2022-03-29 23:07:06 +01:00
parent 8342460d6e
commit 18ea78ed57
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -785,7 +785,7 @@ public class PlayerListener implements Listener {
}
}
DiscordBridge.transmitAdminMessage(textComponent.getText());
DiscordBridge.transmitAdminMessage(DiscordBridge.fullySanitizeDiscordMessage(textComponent.getText()));
// Check absolute value to account for negatives
if (Math.abs(player.getLocation().getX()) >= MAX_XY_COORD || Math.abs(player.getLocation().getZ()) >= MAX_XY_COORD)