From efd5bd58e4c04b3c52da68a5db4c518896585a54 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 27 Oct 2013 18:18:44 +1100 Subject: [PATCH] Fix colours wrapping, somewhat --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 06c10109..bba5cfc1 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -40,6 +40,7 @@ import net.md_5.bungee.protocol.packet.ClientSettings; import net.md_5.bungee.protocol.packet.PluginMessage; import net.md_5.bungee.protocol.packet.Kick; import net.md_5.bungee.util.CaseInsensitiveSet; +import net.md_5.bungee.util.TextWrapper; @RequiredArgsConstructor public final class UserConnection implements ProxiedPlayer @@ -275,7 +276,10 @@ public final class UserConnection implements ProxiedPlayer public void sendMessage(String message) { // TODO: Fix this - unsafe().sendPacket( new Chat( Util.stupify( message ) ) ); + for ( String s : TextWrapper.wrapText( message ) ) + { + unsafe().sendPacket( new Chat( Util.stupify( s ) ) ); + } } @Override