Change Online Players Amount

Discussion in 'BungeeCord Plugin Development' started by XelfeGamer, Jun 15, 2015.

  1. Hey i need synchronize all server and set Online Players Amount, somebody know how i can do it?

    Thanks in advance.
  2. Isn't for me.... and i found the way for do it.
  3. You should handle the ProxyPingEvent. There you can set the online player count, motc etc.
  4. Code (Text):

        public void onLogin(ProxyPingEvent e)

            ServerPing ping = e.getResponse();
            ping.setDescription("sample MOTD");
            List<String> list = new ArrayList<String>();
            PlayerInfo[] sample = new PlayerInfo[list.size()];
            int i = 0;
            for(String s : list) {
                sample[i] = new PlayerInfo(s, "");
            ping.setPlayers(new Players(maxAmount, onlineAmount, sample));
    You can edit everything if you use this.
    • Useful Useful x 1