Use BukkitAudiences#console() instead of serialization

This commit is contained in:
Draycia committed 2020-09-08 11:59:56 -07:00
1 parent 2ae106400a
commit 1ac07d0d3a
5 files changed
+5 -10

No files matched your search

@@ -69,8 +69,7 @@ public class SudoChannelCommand {
private void sendMessageOther(CommandSender sender, ChatUser user, ChatChannel channel, String message) {
Component component = channel.sendMessage(user, message, false);
carbonChat.getLogger().info(CarbonChat.LEGACY.serialize(component)
.replaceAll("(?:[^%]|\\A)%(?:[^%]|\\z)", "%%"));
carbonChat.getAdventureManager().getAudiences().console().sendMessage(component);
}
}