Get countplayers from Bunnge servers in Spigot plugin.

Discussion in 'Spigot Plugin Development' started by arczimiester, Jan 7, 2020.

  1. Hello i need exemple code for get CountPlayers.


    Medote idea
    Code (Java):
    public static int getPlayers(String server){

         //bungee code

        return playerscount;
    }
     
  2. ProxyServer#getServerInfo(String serverName)
    ServerInfo#getPlayers()
    Collection<ProxiedPlayer>#size()
     
  3. Its for Spigot plugin?