public interface Server
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_CHANNEL_ADMINISTRATIVE |
static String |
BROADCAST_CHANNEL_USERS |
static com.fasterxml.jackson.databind.json.JsonMapper |
JSON_MAPPER |
static final com.fasterxml.jackson.databind.json.JsonMapper JSON_MAPPER
static final String BROADCAST_CHANNEL_ADMINISTRATIVE
static final String BROADCAST_CHANNEL_USERS
String getName()
String getVersion()
String getImplementationVersion()
void shutdown()
boolean isRunning()
PluginManager getPluginManager()
GameRuleRegistry getGameRuleRegistry()
int getTick()
EventManager getEventManager()
boolean getAllowFlight()
PermissionManager getPermissionManager()
String getMotd()
GameMode getGamemode()
Level getDefaultLevel()
int getMaxPlayers()
boolean hasWhitelist()
void addWhitelist(Player who)
void removeWhitelist(Player who)
boolean isWhitelisted(Player who)
boolean isBanned(Player who)
boolean isIPBanned(Player who)
void setBanned(Player who, boolean banned, boolean byIP)
default void ban(Player who)
default void banIP(Player who)
default void unban(Player who)
void addOp(Player who)
void addOp(String name)
void removeOp(Player who)
void removeOp(String name)
boolean isOp(Player who)
int getPort()
String getIp()
Difficulty getDifficulty()
void addOnlinePlayer(Player who)
void onPlayerCompleteLoginSequence(Player who)
void setAutoSave(boolean autoSave)
String getApiVersion()
Copyright © 2021. All rights reserved.