Class Players

java.lang.Object
com.welcome234.pluginsystem.Players

public class Players extends Object
This class is used for managing players
  • Method Details

    • getAllPlayers

      public static ArrayList<Player> getAllPlayers()
      Gets all players that have ever joined the server
      Returns:
      Array list of players
    • getOnlinePlayers

      public static ArrayList<Player> getOnlinePlayers()
      Gets all players that are currently online
      Returns:
      Array list of players
    • getUniqueCount

      public static int getUniqueCount()
      Gets the number of unique players that have joined the server
      Returns:
      Unique player count
    • getPlayerCount

      public static int getPlayerCount()
      Gets the number of players that are currently online
      Returns:
      Players online count
    • getMaximumPlayerCount

      public static int getMaximumPlayerCount()
      Gets the maximum number of players that can join the server
      Returns:
      Maximum player count
    • getPlayer

      public static Player getPlayer(String username)
      Gets a player with the player name specified
      Parameters:
      username - Player name
      Returns:
      Player instance
      Throws:
      IllegalArgumentException - if username is null