| Modifier and Type | Field and Description |
|---|---|
static SemVer |
API_VERSION |
static String |
BROADCAST_CHANNEL_ADMINISTRATIVE |
static String |
BROADCAST_CHANNEL_USERS |
static com.fasterxml.jackson.databind.ObjectMapper |
JSON_MAPPER |
static SemVer |
MINECRAFT_VERSION |
static String |
NAME |
static String |
NUKKIT_VERSION |
static com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper |
PROPERTIES_MAPPER |
static com.fasterxml.jackson.dataformat.yaml.YAMLMapper |
YAML_MAPPER |
| Constructor and Description |
|---|
NukkitServer(Path filePath,
Path dataPath,
Path pluginPath,
boolean ansiEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getConsoleCommandSender, getDefaultLevel, getEventManager, getLocaleManager, getPluginManager, getSchedulerpublic static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
public static final com.fasterxml.jackson.dataformat.yaml.YAMLMapper YAML_MAPPER
public static final com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper PROPERTIES_MAPPER
public static final String NAME
public static final SemVer API_VERSION
public static final String NUKKIT_VERSION
public static final SemVer MINECRAFT_VERSION
public static final String BROADCAST_CHANNEL_ADMINISTRATIVE
public static final String BROADCAST_CHANNEL_USERS
@Deprecated public static NukkitServer getInstance()
public void broadcastMessage(@Nonnull String message)
broadcastMessage in interface Server@Nonnull public SemVer getMinecraftVersion()
getMinecraftVersion in interface Server@Nonnull public SemVer getApiVersion()
getApiVersion in interface Server@Nonnull public NukkitAbilities getDefaultAbilities()
getDefaultAbilities in interface Serverpublic void broadcastMessage(Message message)
public void broadcastMessage(String message, Collection<Player> recipients)
public void broadcastMessage(Message message, Collection<Player> recipients)
public ConsoleCommandSender getConsoleSender()
public void doAutoSave()
@Nonnull public Collection<Player> getOnlinePlayers()
getOnlinePlayers in interface Serverpublic Optional<Player> getPlayerExact(@Nonnull String name)
getPlayerExact in interface Serverpublic Locale getLanguage()
@Nullable public PluginCommand getPluginCommand(String name)
public void deop(String name)
public void op(String name)
public boolean isOp(String name)
public boolean isWhitelisted(String name)
public Config getOps()
@Nonnull public NukkitBanlist getBanlist()
getBanlist in interface Server@Nonnull public NukkitWhitelist getWhitelist()
getWhitelist in interface Server@Nonnull public NukkitItemInstanceBuilder itemInstanceBuilder()
itemInstanceBuilder in interface Server@Nonnull public ConfigBuilder createConfigBuilder()
createConfigBuilder in interface Server@Nonnull public NukkitPermissionManager getPermissionManager()
getPermissionManager in interface Server@Nonnull public CompletableFuture<Level> loadLevel(@Nonnull LevelCreator creator)
public boolean unloadLevel(Level level)
@Nonnull public String getNukkitVersion()
getNukkitVersion in interface ServerCopyright © 2017–2018 NukkitX. All rights reserved.