public interface Server extends InstanceData
Network.| Modifier and Type | Method and Description |
|---|---|
long |
getLastPing()
Gets the time the last ping was received from this server.
|
int |
getMaxPlayers()
Gets the maximum amount of players allowed on this server.
|
default <T> T |
getMetadata(String key,
Class<T> type) |
default <T> T |
getMetadata(String key,
TypeToken<T> type) |
Map<UUID,Profile> |
getOnlinePlayers()
Gets the players known to be online on this server.
|
Map<String,com.google.gson.JsonElement> |
getRawMetadata() |
boolean |
isOnline()
Gets if the server is currently online
|
boolean |
isWhitelisted()
Gets whether the server is currently whitelisted.
|
getGroups, getIdboolean isOnline()
long getLastPing()
Map<UUID,Profile> getOnlinePlayers()
int getMaxPlayers()
boolean isWhitelisted()
Copyright © 2020. All rights reserved.