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 2131a81a9..bb06ea30b 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -212,7 +212,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer } @Override - @Synchronized( "permMutex") + @Synchronized("permMutex") public void removeGroups(String... groups) { for (String group : groups) @@ -234,7 +234,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer } @Override - @Synchronized( "permMutex") + @Synchronized("permMutex") public void setPermission(String permission, boolean value) { permissions.put(permission, value); @@ -481,6 +481,14 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer getServer().sendData("BungeeCord", b.toByteArray()); } + if (subChannel.equals("Message")) + { + ProxiedPlayer target = ProxyServer.getInstance().getPlayer(in.readUTF()); + if (target != null) + { + target.sendMessage(in.readUTF()); + } + } continue; } }