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 avatarUrl = DiscordUtil.getAvatarUrl(this, player);
|
||||||
|
|
||||||
final String formattedName = MessageUtil.formatMessage(getSettings().getMcToDiscordNameFormat(player),
|
final String formattedName = MessageUtil.formatMessage(getSettings().getMcToDiscordNameFormat(player),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(player.getName()),
|
player.getName(),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(player.getDisplayName()),
|
player.getDisplayName(),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName())),
|
getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName()),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getPrefix(player))),
|
FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getPrefix(player)),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getSuffix(player))),
|
FormatUtil.stripEssentialsFormat(getPlugin().getEss().getPermissionsHandler().getSuffix(player)),
|
||||||
guild.getMember(jda.getSelfUser()).getEffectiveName());
|
guild.getMember(jda.getSelfUser()).getEffectiveName());
|
||||||
|
|
||||||
DiscordUtil.dispatchDiscordMessage(this, MessageType.DefaultTypes.CHAT, formattedMessage, user.isAuthorized("essentials.discord.ping"), avatarUrl, formattedName, player.getUniqueId());
|
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),
|
name = MessageUtil.formatMessage(jda.getSettings().getMcToDiscordNameFormat(player),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(player.getName()),
|
player.getName(),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(player.getDisplayName()),
|
player.getDisplayName(),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(jda.getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName())),
|
jda.getPlugin().getEss().getSettings().getWorldAlias(player.getWorld().getName()),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getPrefix(player))),
|
FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getPrefix(player)),
|
||||||
MessageUtil.sanitizeDiscordMarkdown(FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getSuffix(player))),
|
FormatUtil.stripEssentialsFormat(jda.getPlugin().getEss().getPermissionsHandler().getSuffix(player)),
|
||||||
jda.getGuild().getMember(jda.getJda().getSelfUser()).getEffectiveName());
|
jda.getGuild().getMember(jda.getJda().getSelfUser()).getEffectiveName());
|
||||||
|
|
||||||
uuid = player.getUniqueId();
|
uuid = player.getUniqueId();
|
||||||
|
Loading…
Reference in New Issue
Block a user