Getting the int Value of Players Online

Discussion in 'Plugin Development' started by PandazNWafflez, May 6, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    PandazNWafflez

    The title says it all, how do I get the amount of players online in an int / double.
     
  2. Bukkit.getOnlinePlayers().length
     
  3. Offline

    Monowii

    Simply :
    int NumberPlayer = getServer().getOnlinePlayers().length;
     
  4. Offline

    PandazNWafflez

Thread Status:
Not open for further replies.

Share This Page