aboutsummaryrefslogtreecommitdiffstats
path: root/bukkit
diff options
context:
space:
mode:
authorTom <72739475+Tom18314@users.noreply.github.com>2023-02-02 11:20:37 +0100
committerLeonardo Bishop <13875753+LMBishop@users.noreply.github.com>2023-02-14 22:32:34 +0000
commit14518205677e64edf39f344345138ca013316b66 (patch)
tree119d5acc719bacd4d70d163d1b09e20584b7f92d /bukkit
parentbf186c0aca0576c292ab88b8f2230a91a4bfc425 (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.
Diffstat (limited to 'bukkit')
-rw-r--r--bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/chat/Chat.java2
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")