diff --git a/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java b/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java index e4aca33fc..a8d0f9fee 100644 --- a/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java +++ b/src/main/java/fr/xephi/authme/hooks/BungeeCordMessage.java @@ -48,7 +48,12 @@ public class BungeeCordMessage implements PluginMessageListener { } if (subChannel.equals("Forward")) { - String str = in.readUTF(); + short len = in.readShort(); + byte[] data = new byte[len]; + in.readFully(data); + + //bytearray to string + String str = new String(data); if (!str.startsWith("AuthMe")) return; String[] args = str.split(";");