Interface GenericServer
- All Known Subinterfaces:
BukkitServer
,BungeeProxy
,VelocityProxy
public interface GenericServer
Interface used to share common information across all platforms.
Platform-specific interfaces extending this Interface are available and may offer additional Data.
This Interface always offers the following Data:
-
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Returns the IP/Domain that got pinged by the Player.int
Returns the number of players allowed to join the Proxy/Server.int
Returns the number of players currently online on the Proxy/Server.
-
Method Details
-
getPlayersOnline
int getPlayersOnline()Returns the number of players currently online on the Proxy/Server.
This value may be modified by a ProfileEntry.Builder's onlinePlayerCount(String) method.- Returns:
- Number of players online on the Server.
-
getPlayersMax
int getPlayersMax()Returns the number of players allowed to join the Proxy/Server.
This value may be modified by a ProfileEntry.Builder's maxPlayersCount(String) method.- Returns:
- Number of players allowed to join the Proxy/Server
-
getHost
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.
-