Hey i need synchronize all server and set Online Players Amount, somebody know how i can do it? Thanks in advance.
Code (Text): @EventHandler public void onLogin(ProxyPingEvent e) { ServerPing ping = e.getResponse(); ping.setDescription("sample MOTD"); List<String> list = new ArrayList<String>(); list.add("Sample"); PlayerInfo[] sample = new PlayerInfo[list.size()]; int i = 0; for(String s : list) { sample[i] = new PlayerInfo(s, ""); i++; } ping.setPlayers(new Players(maxAmount, onlineAmount, sample)); e.setResponse(ping); } You can edit everything if you use this.