Interface Server


public interface Server
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get online players as a number
    Get all the online players
    int
    Get the maximum number of players that can be on the server
    default void
    sendMsgToAll(net.kyori.adventure.text.Component component)
    Send a message to everyone online
  • Method Details

    • currentPlayerCount

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

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

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

      default void sendMsgToAll(net.kyori.adventure.text.Component component)
      Send a message to everyone online
      Parameters:
      component - The message to send