Package us.ajg0702.queue.api.server
Interface AdaptedServerPing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPlayer()
Temporarly adds one player to the player countnet.kyori.adventure.text.Component
getDescriptionComponent()
Gets the component of the description (aka MOTD)long
getFetchedTime()
Returns an epoch timestamp of when this ping was sent.int
getMaxPlayers()
Gets the maximum number of players that can join.java.lang.String
getPlainDescription()
Gets the description (aka MOTD) stripped of any color or stylingint
getPlayerCount()
Gets the number of players currently online
-
-
-
Method Detail
-
getDescriptionComponent
net.kyori.adventure.text.Component getDescriptionComponent()
Gets the component of the description (aka MOTD)- Returns:
- A compoent of the description
-
getPlainDescription
java.lang.String getPlainDescription()
Gets the description (aka MOTD) stripped of any color or styling- Returns:
- The description, but no colors
-
getPlayerCount
int getPlayerCount()
Gets the number of players currently online- Returns:
- The number of players online
-
getMaxPlayers
int getMaxPlayers()
Gets the maximum number of players that can join.- Returns:
- The maximum number of players that can join
-
addPlayer
void addPlayer()
Temporarly adds one player to the player count
-
getFetchedTime
long getFetchedTime()
Returns an epoch timestamp of when this ping was sent.- Returns:
- A long of an epoch timestamp
-
-