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 int pc;

    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
            pc = in.readInt();
        }

    }

    public int getPc() {
        return pc;
    }
}

@@ -316,16 +316,44 @@
  int pc;
+%0A    private String%5B%5D pList;
 %0A%0A    pu
@@ -900,59 +900,384 @@
    %7D
-%0A%0A    %7D%0A%0A    public int getPc() %7B%0A        return pc
+ else if (subchannel.equals(%22PlayerList%22))%7B%0A            String server = in.readUTF(); // The name of the server you got the player list of, as given in args.%0A            String%5B%5D playerList = in.readUTF().split(%22, %22);%0A            pList = playerList;%0A        %7D%0A%0A    %7D%0A%0A    public int getPc() %7B%0A        return pc;%0A    %7D%0A%0A    public String%5B%5D getPlayerList()%7B%0A        return pList
 ;%0A  

Update PML.java