Skip to content

GenericServer

Interface used to share common information across all platforms.

Platform-specific interfaces extending this interface are available and may offer additional features in addition to what this interface is offering.
This interface always offers data for the following:

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 Details

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