mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Fix rainbow nicknames. Legacy sucks.
This commit is contained in:
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)", "%%"));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user