Package de.marcely.bedwars.api.hook
Class CloudSystemHook.ServerInfoDto
java.lang.Object
de.marcely.bedwars.api.hook.CloudSystemHook.ServerInfoDto
- Enclosing interface:
CloudSystemHook
Represents the information that the server shall display.
-
Constructor Summary
ConstructorDescriptionServerInfoDto
(Arena arena, ArenaStatus status, int activePlayers, int maxPlayers, @Nullable String extra) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the amount of active players that are currently playing.getArena()
Get the arena that shall be displayed.@Nullable String
getExtra()
Get the extra information that shall be displayed.int
Get the amount of maximum players that can play.Get the status that shall be displayed.
-
Constructor Details
-
ServerInfoDto
public ServerInfoDto(Arena arena, ArenaStatus status, int activePlayers, int maxPlayers, @Nullable @Nullable String extra)
-
-
Method Details
-
getArena
Get the arena that shall be displayed.- Returns:
- The arena that shall be displayed
-
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
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
-