Class CloudSystemHook.ServerInfoDto

java.lang.Object
de.marcely.bedwars.api.hook.CloudSystemHook.ServerInfoDto
Enclosing interface:
CloudSystemHook

public static class CloudSystemHook.ServerInfoDto extends Object
Represents the information that the server shall display.
  • Constructor Details

    • ServerInfoDto

      public ServerInfoDto(Arena arena, ArenaStatus status, int activePlayers, int maxPlayers, @Nullable @Nullable String extra)
  • Method Details

    • getArena

      public Arena getArena()
      Get the arena that shall be displayed.
      Returns:
      The arena that shall be displayed
    • getStatus

      public ArenaStatus getStatus()
      Get the status that shall be displayed.
      Returns:
      The status that shall be displayed
    • getActivePlayers

      public int getActivePlayers()
      Get the amount of active players that are currently playing.
      Returns:
      The amount of active players that are currently playing
    • getMaxPlayers

      public int getMaxPlayers()
      Get the amount of maximum players that can play.
      Returns:
      The amount of maximum players that can play
    • getExtra

      @Nullable public @Nullable String getExtra()
      Get the extra information that shall be displayed.

      May be null if the user does not want to display any extra information.

      Returns:
      The extra information that shall be displayed. May be null