Class ServerPing.Players
java.lang.Object
com.velocitypowered.api.proxy.server.ServerPing.Players
- Enclosing class:
ServerPing
Represents what the players the server purports to have online, its maximum capacity,
and a sample of players on the server.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayers(int online, int max, List<ServerPing.SamplePlayer> sample) Creates a new instance. -
Method Summary
-
Constructor Details
-
Players
Creates a new instance.- Parameters:
online- the number of online playersmax- the maximum number of playerssample- a sample of players on the server
-
-
Method Details
-
getOnline
public int getOnline()Gets the number of online players.- Returns:
- the number of online players
-
getMax
public int getMax()Gets the maximum number of players the server claims it can hold.- Returns:
- the maximum number of players
-
getSample
Gets a sample list of online players.- Returns:
- the sample players
-
toString
-
equals
-
hashCode
public int hashCode()
-