mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 11:15:19 +01:00
[DEV] [BungeeCord] Fix reading data
This commit is contained in:
parent
1ce4a11147
commit
3975e65655
@ -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(";");
|
||||
|
Loading…
Reference in New Issue
Block a user