fix: use legacySection() instead of ampersand, even though it breaks color codes, i still want the url stuff to work because of discord and things

This commit is contained in:
ChomeNS
2025-04-10 13:48:07 +07:00
parent 7cd77fe850
commit dfdc959a16
2 changed files with 6 additions and 2 deletions

View File

@@ -1 +1 @@
2601
2602

View File

@@ -8,7 +8,11 @@ import net.kyori.adventure.text.format.TextDecoration;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
public class ChatMessageUtilities {
private static final LegacyComponentSerializer SERIALIZER = LegacyComponentSerializer.legacyAmpersand()
private static final LegacyComponentSerializer SERIALIZER = LegacyComponentSerializer
// https://sus.red/abc?a=b&c=d will break the styles, click event, hover events, everything
.legacySection()
.toBuilder()
.extractUrls(