[DEV] [BungeeCord] Fix reading data

This commit is contained in:
Xephi 2015-12-10 18:34:50 +01:00
parent 1ce4a11147
commit 3975e65655

View File

@ -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(";");