Fix rainbow nicknames. Legacy sucks.

This commit is contained in:
Draycia committed 2020-08-24 01:15:02 -07:00
1 parent 9abdc0df4c
commit 45f2915980
8 files changed
+29 -24

No files matched your search

@@ -10,7 +10,6 @@ import net.draycia.carbon.storage.ChatUser;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.TextColor;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import java.util.UUID;
import java.util.function.Consumer;
@@ -130,7 +129,7 @@ public class MessageManager {
channel.sendComponent(user, component);
carbonChat.getLogger().info(LegacyComponentSerializer.legacySection().serialize(component)
carbonChat.getLogger().info(CarbonChat.LEGACY.serialize(component)
.replaceAll("(?:[^%]|\\A)%(?:[^%]|\\z)", "%%"));
}
});