Getting the number of people on a server?

Discussion in 'Plugin Development' started by aikoels, Sep 29, 2012.

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

    aikoels

    I need my plugin to get the amount of people on the server, and then check to make sure that is less than a option in my config, but for the life of me, I can't find out how to get the number of people on the server
     
  2. Bukkit.getOnlinePlayers().length
     
  3. Offline

    aikoels

    Thanks, for whatever reason, no matter how many articles/videos I checked, they never mentioned that
     
  4. Offline

    chaseoes

    Because .length is like.. basic Java knowledge.
     
    jojohnson1 and one4me like this.
Thread Status:
Not open for further replies.

Share This Page