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,
com.google.common.reflect.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 |
isFull()
Checks if the server is full.
|
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 isFull()
boolean isWhitelisted()
default <T> T getMetadata(String key, com.google.common.reflect.TypeToken<T> type)
Copyright © 2022. All rights reserved.