mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +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
@@ -7,7 +7,6 @@ import net.draycia.carbon.CarbonChat;
|
||||
import net.draycia.carbon.channels.ChatChannel;
|
||||
import net.draycia.carbon.storage.ChatUser;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@@ -43,7 +42,7 @@ public class AliasedChannelCommand extends BaseCommand {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(carbonChat, () -> {
|
||||
Component component = getChatChannel().sendMessage(user, String.join(" ", args), false);
|
||||
|
||||
carbonChat.getLogger().info(LegacyComponentSerializer.legacySection().serialize(component)
|
||||
carbonChat.getLogger().info(CarbonChat.LEGACY.serialize(component)
|
||||
.replaceAll("(?:[^%]|\\A)%(?:[^%]|\\z)", "%%"));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user