mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Remove unneeded sanitization in webhook names (#5311)
Regression from 384f63bf92
This commit is contained in:
parent
384f63bf92
commit
3a737480ec
@ -280,11 +280,11 @@ public class JDADiscordService implements DiscordService, IEssentialsModule {
|
||||
final String avatarUrl = DiscordUtil.getAvatarUrl(this, player);
|
||||
|
||||
final String formattedName = MessageUtil.formatMessage(getSettings().getMcToDiscordNameFormat(player),
|
||||
MessageUtil.sanitizeDiscordMarkdown(player.getName()),
|
||||
MessageUtil.sanitizeDiscordMarkdown(player.getDisplayName()),
|
||||
MessageUtil.sanitizeDiscordMarkdown(getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName())),
|
||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getPrefix(player))),
|
||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getSuffix(player))),
|
||||
player.getName(),
|
||||
player.getDisplayName(),
|
||||
getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName()),
|
||||
FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getPrefix(player)),
|
||||
FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getSuffix(player)),
|
||||
guild.getMember(jda.getSelfUser()).getEffectiveName());
|
||||
|
||||
DiscordUtil.dispatchDiscordMessage(this, MessageType.DefaultTypes.CHAT, formattedMessage, user.isAuthorized("essentials.discord.ping"), avatarUrl, formattedName, player.getUniqueId());
|
||||
|
@ -273,11 +273,11 @@ public class BukkitListener implements Listener {
|
||||
}
|
||||
|
||||
name = MessageUtil.formatMessage(jda.getSettings().getMcToDiscordNameFormat(player),
|
||||
MessageUtil.sanitizeDiscordMarkdown(player.getName()),
|
||||
MessageUtil.sanitizeDiscordMarkdown(player.getDisplayName()),
|
||||
MessageUtil.sanitizeDiscordMarkdown(jda.getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName())),
|
||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getPrefix(player))),
|
||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getSuffix(player))),
|
||||
player.getName(),
|
||||
player.getDisplayName(),
|
||||
jda.getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName()),
|
||||
FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getPrefix(player)),
|
||||
FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getSuffix(player)),
|
||||
jda.getGuild().getMember(jda.getJda().getSelfUser()).getEffectiveName());
|
||||
|
||||
uuid = player.getUniqueId();
|
||||
|
Loading…
Reference in New Issue
Block a user