diff options
| author | Tom <72739475+Tom18314@users.noreply.github.com> | 2023-02-02 11:20:37 +0100 |
|---|---|---|
| committer | Leonardo Bishop <13875753+LMBishop@users.noreply.github.com> | 2023-02-14 22:32:34 +0000 |
| commit | 14518205677e64edf39f344345138ca013316b66 (patch) | |
| tree | 119d5acc719bacd4d70d163d1b09e20584b7f92d | |
| parent | bf186c0aca0576c292ab88b8f2230a91a4bfc425 (diff) | |
Legacy pattern doesn't detect § symbol
Legacy pattern doesn't detect § symbol which causes error:
[Server] ERROR Could not pass event InventoryClickEvent to Quests v3.13.2-82af8a4
[Server] INFO net.kyori.adventure.text.minimessage.internal.parser.ParsingExceptionImpl: Legacy formatting codes have been detected in a MiniMessage string - this is unsupported behaviour. Please refer to the Adventure documentation (https://docs.adventure.kyori.net) for more information.
[Server] INFO §cCancel message.
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java index f3a7cb2e..1a9b0709 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java @@ -36,7 +36,7 @@ public class Chat { questsPlugin.getQuestsLogger().debug("Modern chat is not available, resorting to legacy chat."); miniMessageParser = null; } - legacyPattern = Pattern.compile("&(?:\\d|#|[a-f]|[k-o]|r)"); + legacyPattern = Pattern.compile("(&|§)(?:\\d|#|[a-f]|[k-o]|r)"); } @Contract("null -> null") |
