Interface Server


public interface Server
  • Method Summary

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

    • getCurrentPlayerCount

      int getCurrentPlayerCount()
      Get online players as a number
      Returns:
      number of Players online
    • getMaxPlayerCount

      int getMaxPlayerCount()
      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