What's wrong with my code: Code (Text): public boolean getStatusPlayer(String amigo) { ByteArrayDataOutput out = ByteStreams.newDataOutput(); ByteArrayDataInput in = ByteStreams.newDataInput(out.toByteArray()); boolean status = false; out.writeUTF("PlayerList"); out.writeUTF("ALL"); String[] playerList = in.readUTF().split(", "); for(String s : playerList) { if(status) { break; } if(s.equalsIgnoreCase(amigo)) { status = true; } } return status; } i got an error on the line "String[] playerList = in.readUTF().split(", ");" Thanks in advance.
I don't think you quite grasped the idea of how plugin messages work. First you send a plugin message, and wait for a response by using a PluginMessageListener.
Have a look on this! ... Or you try my API BungeeBridge, which allows you to interact with Bungeecord without PMCs..