Skip to content

GenericServer

Simple class used to wrap around some generic server data such as online player count, number of total players that can join and the host (IP/Domain) that got pinged by the player.

Method Summary

Modifier and Type Method Description
int getPlayersOnline() Returns the number of players currently online on the server.
int getPlayersMax() Returns the number of total players that can join the server.
nullable String getHost() Returns the IP/Domain that got pinged by the player.

Method Detail

int getPlayersOnline()

Returns the number of players currently online on the server.

Returns:

Number of players online on the server.

int getPlayersMax()

Returns the number of total players that can join the server.

Returns:

Number of total players that can join the server.

String getHost()

Returns the IP/Domain that got pinged by the player.

Returns:

Possibly-null String containing the IP/Domain that got pinged by the player