Solved Check for server player limit

Discussion in 'Plugin Help/Development/Requests' started by bijx, Apr 3, 2016.

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

    bijx

    I am making a plugin that tracks stats for different players, but I need to get the server limit so that at startup when my plugin initializes it makes an array as large as the max number of players. So if the player limit is 20, you'd use some sort of command like getPlayerLimit(); and it would return an int as the limit.

    How might I go about doing this? I am using Spigot 1.9 if that makes a difference.
     
  2. Offline

    Zombie_Striker

  3. Offline

    timtower Moderator Moderator

    @bijx How about using hashmaps or sets instead? In case that they have a plugin that ignores the max amount.
     
  4. Offline

    bijx

Thread Status:
Not open for further replies.

Share This Page