diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java index c90ed31a..7cb4c078 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java @@ -411,10 +411,11 @@ public class Discord extends FreedomService message = StringUtils.remove(message, "ยง"); } - + Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message); - while (DISCORD_MENTION_MATCHER.find()) { + while (DISCORD_MENTION_MATCHER.find()) + { String mention = DISCORD_MENTION_MATCHER.group(1); message = message.replace(mention, mention.replace('@',' ')); } @@ -447,7 +448,8 @@ public class Discord extends FreedomService Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message); - while (DISCORD_MENTION_MATCHER.find()) { + while (DISCORD_MENTION_MATCHER.find()) + { String mention = DISCORD_MENTION_MATCHER.group(1); message = message.replace(mention, mention.replace('@',' ')); }