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:
- Players currently online on the Proxy/Server
- Max Players allowed to join the Proxy/Server
- IP/Domain 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 Details¶
int getPlayersOnline()
¶
Returns the number of players currently online on the server.
Returns:¶
Number of players online on the server.