Package us.ajg0702.queue.api.server
Interface AdaptedServerPing
- All Superinterfaces:
Handle
-
Method Summary
Modifier and TypeMethodDescriptionvoidTemporarly adds one player to the player countnet.kyori.adventure.text.ComponentGets the component of the description (aka MOTD)longReturns an epoch timestamp of when this ping was sent.intGets the maximum number of players that can join.Gets the description (aka MOTD) stripped of any color or stylingintGets the number of players currently online
-
Method Details
-
getDescriptionComponent
net.kyori.adventure.text.Component getDescriptionComponent()Gets the component of the description (aka MOTD)- Returns:
- A compoent of the description
-
getPlainDescription
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
-