Removed Methods |
int broadcast(String, String)
|
Broadcasts the specified message to every user with the given
permission name. |
ItemStack craftItem(ItemStack[], World, Player)
|
Get the crafted item using the list of ItemStack provided. |
Inventory createInventory(InventoryHolder, int, String)
|
Creates an empty inventory of type InventoryType.CHEST with the
specified size and title. |
Inventory createInventory(InventoryHolder, InventoryType, String)
|
Creates an empty inventory with the specified type and title. |
PlayerProfile createPlayerProfile(String )
|
Creates a new PlayerProfile. |
PlayerProfile createPlayerProfile(UUID )
|
Creates a new PlayerProfile. |
PlayerProfile createPlayerProfile(UUID, String)
|
Creates a new PlayerProfile. |
Recipe getCraftingRecipe(ItemStack[], World)
|
Get the Recipe for the list of ItemStacks provided. |
boolean getHideOnlinePlayers()
|
Gets whether the Server hide online players in server status. |
String getResourcePack()
|
Gets the server resource pack uri, or empty string if not specified. |
String getResourcePackHash()
|
Gets the SHA-1 digest of the server resource pack, or empty string if
not specified. |
String getResourcePackPrompt()
|
Gets the custom prompt message to be shown when the server resource
pack is required, or empty string if not specified. |
int getSimulationDistance()
|
Get the simulation distance from this server. |
int getSpawnLimit(SpawnCategory )
|
Gets user-specified limit for number of SpawnCategory mobs that can spawn in
a chunk. |
StructureManager getStructureManager()
|
Gets the structure manager for loading and saving structures. |
int getTicksPerSpawns(SpawnCategory )
|
Gets the default ticks per SpawnCategory spawns value. |
int getTicksPerWaterUndergroundCreatureSpawns()
|
Gets the default ticks per water underground creature spawns value. |
int getWaterUndergroundCreatureSpawnLimit()
|
Get user-specified limit for number of water creature underground that can spawn
in a chunk. |
boolean isResourcePackRequired()
|
Gets whether the server resource pack is enforced. |
boolean isWhitelistEnforced()
|
Gets whether the server whitelist is enforced. |
void setWhitelistEnforced(boolean )
|
Sets if the server whitelist is enforced. |
Added Methods |
int broadcast(Component )
|
Broadcast a message to all players. |
int broadcast(Component, String)
|
Broadcasts the specified message to every user with the given
permission name. |
void broadcast(BaseComponent )
|
Sends the component to all online players. |
void broadcast(BaseComponent[] )
|
Sends an array of components as a single message to all online players. |
Inventory createInventory(InventoryHolder, int, Component)
|
Creates an empty inventory of type InventoryType.CHEST with the
specified size and title. |
Inventory createInventory(InventoryHolder, InventoryType, Component)
|
Creates an empty inventory with the specified type and title. |
PlayerProfile createProfile(String )
|
Creates a PlayerProfile for the specified name, with UUID as null
|
PlayerProfile createProfile(UUID )
|
Creates a PlayerProfile for the specified uuid, with name as null
|
PlayerProfile createProfile(UUID, String)
|
Creates a PlayerProfile for the specified name/uuid
Both UUID and Name can not be null at same time. |
ChunkData createVanillaChunkData(World, int, int)
|
Create a ChunkData for use in a generator, that is populated by the vanilla generator for that world
|
double getAverageTickTime()
|
Get the average tick time (in millis)
|
CommandMap getCommandMap()
|
Gets the active org.bukkit.command.CommandMap
|
int getCurrentTick()
|
|
DatapackManager getDatapackManager()
|
@return the datapack manager |
String getMinecraftVersion()
|
Gets the version of game this server implements
|
MobGoals getMobGoals()
|
Returns the com.destroystokyo.paper.entity.ai.MobGoals manager
|
OfflinePlayer getOfflinePlayerIfCached(String )
|
Gets the player by the given name, regardless if they are offline or
online. |
String getPermissionMessage()
|
@return the default no permission message used on the server |
UUID getPlayerUniqueId(String )
|
Gets the unique ID of the player currently known as the specified player name
In Offline Mode, will return an Offline UUID
|
double[] getTPS()
|
Gets the current server TPS
|
long[] getTickTimes()
|
Get a sample of the servers last tick times (in nanos)
|
World getWorld(NamespacedKey )
|
Gets the world from the given NamespacedKey
|
boolean isStopping()
|
Checks if the server is in the process of being shutdown. |
Component motd()
|
Gets the message that is displayed on the server list. |
boolean reloadCommandAliases()
|
Reload the Command Aliases in commands.yml
|
void reloadPermissions()
|
Reload the Permissions in permissions.yml |
void setMaxPlayers(int )
|
Set the maximum amount of players which can login to this server. |
Component shutdownMessage()
|
Gets the default message that is displayed when the server is stopped. |
boolean suggestPlayerNamesWhenNullTabCompletions()
|
Checks if player names should be suggested when a command returns {@code null} as
their tab completion result. |
Changed Methods |
int broadcastMessage(String )
|
Now deprecated.
|
in favour of {@link Server#broadcast(net.kyori.adventure.text.Component)} |
Merchant createMerchant(Component )
|
Change in signature from String to Component .
|
Creates an empty merchant. |
int getAmbientSpawnLimit()
|
Change from deprecated to undeprecated.
|
Gets user-specified limit for number of ambient mobs that can spawn in
a chunk. |
int getAnimalSpawnLimit()
|
Change from deprecated to undeprecated.
|
Gets user-specified limit for number of animals that can spawn in a
chunk. |
int getMonsterSpawnLimit()
|
Change from deprecated to undeprecated.
|
Gets user-specified limit for number of monsters that can spawn in a
chunk. |
String getMotd()
|
Now deprecated.
|
in favour of {@link #motd()} |
String getShutdownMessage()
|
Now deprecated.
|
in favour of {@link #shutdownMessage()} |
int getTicksPerAmbientSpawns()
|
Change from deprecated to undeprecated.
|
Gets the default ticks per ambient mob spawns value. |
int getTicksPerAnimalSpawns()
|
Change from deprecated to undeprecated.
|
Gets default ticks per animal spawns value. |
int getTicksPerMonsterSpawns()
|
Change from deprecated to undeprecated.
|
Gets the default ticks per monster spawns value. |
int getTicksPerWaterAmbientSpawns()
|
Change from deprecated to undeprecated.
|
Gets the default ticks per water ambient mob spawns value. |
int getTicksPerWaterSpawns()
|
Change from deprecated to undeprecated.
|
Gets the default ticks per water mob spawns value. |
int getWaterAmbientSpawnLimit()
|
Change from deprecated to undeprecated.
|
Gets user-specified limit for number of water ambient mobs that can spawn
in a chunk. |
int getWaterAnimalSpawnLimit()
|
Change from deprecated to undeprecated.
|
Gets user-specified limit for number of water animals that can spawn in
a chunk. |