Fully sanitize EVERYTHING!

This commit is contained in:
Business Goose 2022-03-29 22:39:09 +01:00
parent 2afd1e6d19
commit 3e32f8e294
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -631,7 +631,7 @@ public class PlayerListener implements Listener {
event.setFormat(ChatColor.translateAlternateColorCodes('&', MainConfig.getString(ConfigurationEntry.CHAT_FORMAT)).replace("{RANK}", playerdata.getTag().replaceAll("%", "%%")));
}
DiscordBridge.transmitMessage(String.format(event.getFormat(), event.getPlayer().getDisplayName(), DiscordBridge.fullySanitizeDiscordMessage(event.getMessage())));
DiscordBridge.transmitMessage(DiscordBridge.fullySanitizeDiscordMessage(String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage())));
}
catch (Exception ex)
{