Package us.ajg0702.queue.api.server
Interface AdaptedServerPing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPlayer()Temporarly adds one player to the player countnet.kyori.adventure.text.ComponentgetDescriptionComponent()Gets the component of the description (aka MOTD)longgetFetchedTime()Returns an epoch timestamp of when this ping was sent.intgetMaxPlayers()Gets the maximum number of players that can join.java.lang.StringgetPlainDescription()Gets the description (aka MOTD) stripped of any color or stylingintgetPlayerCount()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
-
-