mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Use BukkitAudiences#console() instead of serialization
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user