package me.AKZOMBIE74;

import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteStreams;
import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;

/**
 * Created by AKZOMBIE74 on 1/27/2016.
 */
public class PML implements PluginMessageListener{

    private String serverip = null;

    @Override
    public void onPluginMessageReceived(String channel, Player player, byte[] message) {
        if (!channel.equals("BungeeCord")) {
            return;
        }

        ByteArrayDataInput in = ByteStreams.newDataInput(message);
        String subchannel = in.readUTF();
        if (subchannel.equals("PlayerCount")) {
            // Use the code sample in the 'Response' sections below to read
            // the data.
            String server = in.readUTF(); // Name of server, as given in the arguments
            Selector.getInstance().getPlayerCounts().put(server, in.readInt());
        } else if (subchannel.equals("PlayerList")){
            String server = in.readUTF(); // The name of the server you got the player list of, as given in args.
            Selector.getInstance().getPlayerLists().put(server, in.readUTF().split(", "));
        } else if (subchannel.equals("ServerIP")) {
            String servername = in.readUTF();
            serverip = in.readUTF();
            int port = in.readUnsignedShort();
        }

    }


    public String getServerip() {
        return serverip;
    }
}

@@ -301,45 +301,8 @@
 r%7B%0A%0A
-    private String serverip = null;%0A%0A
     
@@ -900,16 +900,31 @@
 dInt());
+ // PlayerCount
 %0A       
@@ -1216,16 +1216,18 @@
 ls(%22
+Get
 Server
-IP
+s
 %22)) 
@@ -1250,19 +1250,21 @@
 ring
+%5B%5D
  server
-name
+List
  = i
@@ -1278,171 +1278,96 @@
 TF()
-;%0A            serverip = in.readUTF();%0A            int port = in.readUnsignedShort();%0A        %7D%0A%0A    %7D%0A%0A%0A    public String getServerip() %7B%0A        return serverip;
+.split(%22, %22);%0A            Selector.getInstance().setServerExists(serverList);%0A        %7D%0A
 %0A   

Update PML.java