Interface Server


public interface Server
  • Method Details

    • hostname

      String hostname()
      Get the server hostname
      Returns:
      the hostname
    • currentPlayerCount

      static int currentPlayerCount()
      Get online players as a number
      Returns:
      number of Players online
    • maxPlayerCount

      static int maxPlayerCount()
      Get the maximum number of players that can be on the server
      Returns:
      number max Players
    • getOnlinePlayers

      static ArrayList<Player> getOnlinePlayers()
      Get all the online players
      Returns:
      ArrayList of the players
    • sendMsgToAll

      static void sendMsgToAll(ChatMessage message)
      Send a message to everyone online
      Parameters:
      message - message to send