Package net.glowstone
Class GlowServer
java.lang.Object
net.glowstone.GlowServer
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience,net.kyori.adventure.audience.ForwardingAudience,net.kyori.adventure.pointer.Pointered,org.bukkit.plugin.messaging.PluginMessageRecipient,org.bukkit.Server
The core class of the Glowstone server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.SingleNested classes/interfaces inherited from interface org.bukkit.Server
org.bukkit.Server.Spigot -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe data version supported by the server.static final StringThe game version supported by the server.static final LoggerThe logger for this class.org.bukkit.permissions.PermissionDefault root permissions.org.bukkit.permissions.PermissionDefault root command permissions.static final intThe protocol version supported by the server.Fields inherited from interface org.bukkit.Server
BROADCAST_CHANNEL_ADMINISTRATIVE, BROADCAST_CHANNEL_USERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdvancement(org.bukkit.advancement.Advancement advancement) Registers an advancement to the advancement registry.booleanaddRecipe(org.bukkit.inventory.Recipe recipe) Iterator<org.bukkit.advancement.Advancement>@NonNull Iterable<? extends net.kyori.adventure.audience.Audience>voidintbroadcast(@NotNull net.kyori.adventure.text.Component message) intintvoidbroadcast(net.md_5.bungee.api.chat.BaseComponent component) voidbroadcast(net.md_5.bungee.api.chat.BaseComponent... components) intbroadcastMessage(String message) voidbroadcastPacket(com.flowpowered.network.Message message) Broadcasts a packet for all online players.void@NotNull org.bukkit.inventory.ItemStackcraftItem(@NotNull org.bukkit.inventory.ItemStack[] craftingMatrix, @NotNull org.bukkit.World world, @NotNull org.bukkit.entity.Player player) createAdvancementsMessage(boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player) Creates anAdvancementsMessagecontaining a list of advancements the server has, along with some extra actions.createAdvancementsMessage(Map<org.bukkit.NamespacedKey, org.bukkit.advancement.Advancement> advancements, boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player) Creates anAdvancementsMessagecontaining a given list of advancements, along with some extra actions.org.bukkit.block.data.BlockDatacreateBlockData(String data) org.bukkit.block.data.BlockDatacreateBlockData(org.bukkit.Material material) org.bukkit.block.data.BlockDatacreateBlockData(org.bukkit.Material material, String data) org.bukkit.block.data.BlockDatacreateBlockData(org.bukkit.Material material, Consumer<org.bukkit.block.data.BlockData> consumer) org.bukkit.boss.BossBarcreateBossBar(String title, org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle style, org.bukkit.boss.BarFlag... flags) @NotNull org.bukkit.boss.KeyedBossBarcreateBossBar(org.bukkit.NamespacedKey key, String title, org.bukkit.boss.BarColor barColor, org.bukkit.boss.BarStyle barStyle, org.bukkit.boss.BarFlag... barFlags) org.bukkit.generator.ChunkGenerator.ChunkDatacreateChunkData(org.bukkit.World world) @NotNull org.bukkit.command.CommandSendercreateCommandSender(@NotNull Consumer<? super net.kyori.adventure.text.Component> feedback) @NotNull org.bukkit.inventory.ItemStackcreateExplorerMap(@NotNull org.bukkit.World world, @NotNull org.bukkit.Location location, @NotNull org.bukkit.StructureType structureType) @NotNull org.bukkit.inventory.ItemStackcreateExplorerMap(@NotNull org.bukkit.World world, @NotNull org.bukkit.Location location, @NotNull org.bukkit.StructureType structureType, int i, boolean b) static GlowServercreateFromArguments(String... args) Initialize a server using the command-line arguments.@NotNull org.bukkit.inventory.InventorycreateInventory(@Nullable org.bukkit.inventory.InventoryHolder inventoryHolder, int i, @NotNull net.kyori.adventure.text.Component component) @NotNull org.bukkit.inventory.InventorycreateInventory(@Nullable org.bukkit.inventory.InventoryHolder inventoryHolder, @NotNull org.bukkit.event.inventory.InventoryType inventoryType, @NotNull net.kyori.adventure.text.Component component) org.bukkit.inventory.InventorycreateInventory(org.bukkit.inventory.InventoryHolder owner, int size) org.bukkit.inventory.InventorycreateInventory(org.bukkit.inventory.InventoryHolder owner, int size, String title) org.bukkit.inventory.InventorycreateInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.event.inventory.InventoryType type) org.bukkit.inventory.InventorycreateInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.event.inventory.InventoryType type, String title) createMap(org.bukkit.World world) @NotNull org.bukkit.inventory.MerchantcreateMerchant(@Nullable net.kyori.adventure.text.Component component) org.bukkit.inventory.MerchantcreateMerchant(String title) @NotNull org.bukkit.profile.PlayerProfilecreatePlayerProfile(@NotNull String name) @NotNull org.bukkit.profile.PlayerProfilecreatePlayerProfile(@NotNull UUID uniqueId) @NotNull org.bukkit.profile.PlayerProfilecreatePlayerProfile(@Nullable UUID uniqueId, @Nullable String name) createProfile(String name) createProfile(UUID id) createProfile(UUID id, String name) createProfile(UUID uuid, String name, boolean asyncLookup) Creates a player profile.@NotNull com.destroystokyo.paper.profile.PlayerProfilecreateProfileExact(@Nullable UUID uuid, @Nullable String name) org.bukkit.generator.ChunkGenerator.ChunkDatacreateVanillaChunkData(org.bukkit.World world, int x, int z) createWorld(org.bukkit.WorldCreator creator) @NotNull org.bukkit.WorldBorderbooleandispatchCommand(org.bukkit.command.CommandSender sender, String commandLine) booleanGets whether the server is OpenCL-capable and allowed to use graphics compute functionality.org.bukkit.advancement.AdvancementgetAdvancement(org.bukkit.NamespacedKey namespacedKey) booleanGets whether the server allows client mods.booleanbooleanbooleanintintbooleanGets whether animal spawning is enabled.doubleorg.bukkit.BanListgetBanList(org.bukkit.BanList.Type type) Set<org.bukkit.OfflinePlayer>net.glowstone.block.data.BlockDataManagerWhat manages the mapping of Material to BlockData and the mapping between State ID and BlockData.@Nullable org.bukkit.boss.KeyedBossBargetBossBar(@NotNull org.bukkit.NamespacedKey namespacedKey) @NotNull Iterator<org.bukkit.boss.KeyedBossBar>booleanWhether the server uses the classic water flowing algorithm.org.bukkit.command.SimpleCommandMapGets the command map.intGet the threshold to use for network compression defined in the config.Gets the server configuration.Returns the folder where configuration files are stored.longGets the server console's date format.Gets the server's console logs date format.Gets the server's console prompt.org.bukkit.command.ConsoleCommandSender@Nullable org.bukkit.inventory.RecipegetCraftingRecipe(@NotNull org.bukkit.inventory.ItemStack[] craftingMatrix, @NotNull org.bukkit.World world) int@NotNull io.papermc.paper.datapack.DatapackManagerorg.bukkit.GameModeorg.bukkit.DifficultyGet the default game difficulty defined in the config.org.bukkit.entity.EntityGets the entity id manager.The FishingRewards of this server.net.glowstone.datapack.FuelManagerReturn the fuel manager.booleanorg.bukkit.help.HelpMapbooleanintgetIp()org.bukkit.inventory.ItemFactoryThe key pair generated at server start up.org.bukkit.loot.LootTablegetLootTable(@NotNull org.bukkit.NamespacedKey tableKey) getMap(int id) Gets theMaterialValueManagerfor this server.intGets the max building height of the server.intintorg.bukkit.plugin.messaging.Messengercom.destroystokyo.paper.entity.ai.MobGoalsintbooleanGets whether monster spawning is enabled.getMotd()getName()The network server used for network communication.org.bukkit.OfflinePlayergetOfflinePlayer(String name) Deprecated.org.bukkit.OfflinePlayergetOfflinePlayer(UUID uuid) org.bukkit.OfflinePlayergetOfflinePlayer(GlowPlayerProfile profile) Creates a newGlowOfflinePlayerinstance for the givenGlowPlayerProfile.CompletableFuture<org.bukkit.OfflinePlayer>getOfflinePlayerAsync(String name) Creates a newGlowOfflinePlayerinstance for the given name.CompletableFuture<org.bukkit.OfflinePlayer>getOfflinePlayerAsync(UUID uuid) Creates a newGlowOfflinePlayerinstance for the given uuid.org.bukkit.OfflinePlayergetOfflinePlayerIfCached(@NotNull String username) org.bukkit.OfflinePlayer[]CompletableFuture<org.bukkit.OfflinePlayer[]>Gets every player that has ever played on this server.booleanCollection<? extends org.bukkit.entity.Player>Set<org.bukkit.OfflinePlayer>Returns the list of operators on this server.@NotNull Stringorg.bukkit.entity.Playerorg.bukkit.entity.PlayerReturns the player data service attached to the first world.org.bukkit.entity.PlayergetPlayerExact(String name) intGets the maximum size of the player sample as shown on the client's server list when pinging the server.Returns the player statistics I/O service attached to the first world.getPlayerUniqueId(String playerName) org.bukkit.command.PluginCommandgetPluginCommand(String name) org.bukkit.plugin.PluginManager@NotNull FileintgetPort()@NotNull org.bukkit.potion.PotionBrewerintGet the time after a profile lookup should be cancelled.booleanGet whether parsing of data provided by a proxy is enabled.Gets the modifiable set of the server's online players.org.bukkit.inventory.RecipegetRecipe(@NotNull org.bukkit.NamespacedKey key) net.glowstone.datapack.RecipeManagerReturn the recipe manager.List<org.bukkit.inventory.Recipe>getRecipesFor(org.bukkit.inventory.ItemStack result) @NotNull StringGet the resource pack hash for this server, or the empty string if not set.@NotNull StringGet the resource pack url for this server, ornullif not set.Returns the scoreboard I/O service attached to the first world.Gets the server type (e.g.org.bukkit.plugin.ServicesManagerGets the session registry.intintgetSpawnLimit(@NotNull org.bukkit.entity.SpawnCategory spawnCategory) intA list of detected files that are Sponge plugins.Gets the current storage provider factory, or null if none has been set by a plugin and the server has not started yet.@NotNull org.bukkit.structure.StructureManager<T extends org.bukkit.Keyed>
org.bukkit.Tag<T><T extends org.bukkit.Keyed>
@NotNull Iterable<org.bukkit.Tag<T>>intintintintgetTicksPerSpawns(@NotNull org.bukkit.entity.SpawnCategory spawnCategory) intintintlong[]double[]getTPS()org.bukkit.UnsafeValuesDeprecated.intorg.bukkit.Warning.WarningStateintintintReturns the list of whitelisted players on this server.Set<org.bukkit.OfflinePlayer>org.bukkit.WorldgetWorld(@NotNull org.bukkit.NamespacedKey namespacedKey) static WorldConfigGets the world configuration for this server.List<org.bukkit.World>booleanbooleanGets whether world generation is disabled on the server.booleanbooleanbooleanGets whether PVP is enabled on the server.booleanbooleanbooleanbooleanGet whether worlds should keep their spawns loaded by default.org.bukkit.util.CachedServerIconloadServerIcon(BufferedImage image) org.bukkit.util.CachedServerIconloadServerIcon(File file) static voidCreates a new server on TCP port 25565 and starts listening for connections.List<org.bukkit.entity.Player>matchPlayer(String name) @NotNull net.kyori.adventure.text.Componentmotd()@NotNull net.kyori.adventure.text.ComponentbooleanGet whether to populate chunks when they are anchored.Iterator<org.bukkit.inventory.Recipe>voidreload()Reloads the server, refreshing settings and plugin information.booleanvoidvoidvoidbooleanremoveBossBar(@NotNull org.bukkit.NamespacedKey namespacedKey) booleanremoveRecipe(@NotNull org.bukkit.NamespacedKey key) voidvoidrun()Starts the server starting sequence (starting, binding to port, etc.)void@NotNull List<org.bukkit.entity.Entity>selectEntities(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull String s) voidsendPlayerAbilities(GlowPlayer player) Sends aGlowPlayertheir abilities regarding flying and walking.voidsendPluginMessage(org.bukkit.plugin.Plugin source, String channel, byte[] message) voidsetDefaultGameMode(org.bukkit.GameMode mode) voidsetIdleTimeout(int timeout) voidSets the IP address that the Query server will expose.voidsetMaxPlayers(int maxPlayers) voidsetPlayerOnline(GlowPlayer player, boolean online) Sets a player as being online internally.voidsetPort(int port) Sets the port that the Query server will expose.voidsetSpawnRadius(int value) voidsetStorageProvider(WorldStorageProviderFactory storageProviderFactory) If a storage provider factory has not yet been set, and the server has not fully started yet, this allows plugins to set a storage provider factory, which will be used to create a storage provider for each world.voidsetWhitelist(boolean enabled) voidsetWhitelistEnforced(boolean value) booleanGets whether the server should prevent player proxy connections.voidshutdown()Stops this server.voidStops this server, sending the specified message to all players on their kick screen.net.kyori.adventure.text.Componentorg.bukkit.Server.Spigotspigot()voidstart()Starts this server.booleantoString()voidbooleanunloadWorld(String name, boolean save) booleanunloadWorld(org.bukkit.World world, boolean save) booleanGet whether to use color codes in Rcon responses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSoundMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, playSound, playSound, playSound, pointers, resetTitle, sendActionBar, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSoundMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom
-
Field Details
-
logger
The logger for this class. -
GAME_VERSION
The game version supported by the server. -
PROTOCOL_VERSION
public static final int PROTOCOL_VERSIONThe protocol version supported by the server. -
DATA_VERSION
public static final int DATA_VERSIONThe data version supported by the server. -
permissionRoot
public org.bukkit.permissions.Permission permissionRootDefault root permissions. -
permissionRootCommand
public org.bukkit.permissions.Permission permissionRootCommandDefault root command permissions.
-
-
Constructor Details
-
GlowServer
Creates a new server.- Parameters:
config- This server's config.
-
-
Method Details
-
main
Creates a new server on TCP port 25565 and starts listening for connections.- Parameters:
args- The command-line arguments.
-
createFromArguments
Initialize a server using the command-line arguments.- Parameters:
args- the command-line arguments- Returns:
- the new server, or null if the command-line arguments include e.g.
--version
-
run
public void run()Starts the server starting sequence (starting, binding to port, etc.) -
start
public void start()Starts this server. -
shutdown
public void shutdown()Stops this server.- Specified by:
shutdownin interfaceorg.bukkit.Server
-
shutdown
Stops this server, sending the specified message to all players on their kick screen.- Parameters:
message- Message to send to all players as they are kicked
-
getSpongePlugins
A list of detected files that are Sponge plugins.- Returns:
- a list of
Filesthat are Sponge plugins.
-
reload
public void reload()Reloads the server, refreshing settings and plugin information.- Specified by:
reloadin interfaceorg.bukkit.Server
-
reloadData
public void reloadData()- Specified by:
reloadDatain interfaceorg.bukkit.Server
-
toString
-
getCommandMap
public org.bukkit.command.SimpleCommandMap getCommandMap()Gets the command map.- Specified by:
getCommandMapin interfaceorg.bukkit.Server- Returns:
- The
SimpleCommandMap.
-
getAdvancement
public org.bukkit.advancement.Advancement getAdvancement(org.bukkit.NamespacedKey namespacedKey) - Specified by:
getAdvancementin interfaceorg.bukkit.Server
-
advancementIterator
- Specified by:
advancementIteratorin interfaceorg.bukkit.Server
-
createBlockData
public org.bukkit.block.data.BlockData createBlockData(org.bukkit.Material material) - Specified by:
createBlockDatain interfaceorg.bukkit.Server
-
createBlockData
public org.bukkit.block.data.BlockData createBlockData(org.bukkit.Material material, Consumer<org.bukkit.block.data.BlockData> consumer) - Specified by:
createBlockDatain interfaceorg.bukkit.Server
-
createBlockData
- Specified by:
createBlockDatain interfaceorg.bukkit.Server- Throws:
IllegalArgumentException
-
createBlockData
public org.bukkit.block.data.BlockData createBlockData(org.bukkit.Material material, String data) throws IllegalArgumentException - Specified by:
createBlockDatain interfaceorg.bukkit.Server- Throws:
IllegalArgumentException
-
getTag
public <T extends org.bukkit.Keyed> org.bukkit.Tag<T> getTag(@NotNull @NotNull String registry, @NotNull @NotNull org.bukkit.NamespacedKey tagKey, @NotNull @NotNull Class<T> clazz) - Specified by:
getTagin interfaceorg.bukkit.Server
-
getTags
@NotNull public <T extends org.bukkit.Keyed> @NotNull Iterable<org.bukkit.Tag<T>> getTags(@NotNull @NotNull String registry, @NotNull @NotNull Class<T> clazz) - Specified by:
getTagsin interfaceorg.bukkit.Server
-
getLootTable
public org.bukkit.loot.LootTable getLootTable(@NotNull @NotNull org.bukkit.NamespacedKey tableKey) - Specified by:
getLootTablein interfaceorg.bukkit.Server
-
selectEntities
@NotNull public @NotNull List<org.bukkit.entity.Entity> selectEntities(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull String s) throws IllegalArgumentException - Specified by:
selectEntitiesin interfaceorg.bukkit.Server- Throws:
IllegalArgumentException
-
getStructureManager
@NotNull public @NotNull org.bukkit.structure.StructureManager getStructureManager()- Specified by:
getStructureManagerin interfaceorg.bukkit.Server
-
addAdvancement
public void addAdvancement(org.bukkit.advancement.Advancement advancement) Registers an advancement to the advancement registry.- Parameters:
advancement- the advancement to add.
-
createAdvancementsMessage
public AdvancementsMessage createAdvancementsMessage(boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player) Creates anAdvancementsMessagecontaining a list of advancements the server has, along with some extra actions.This does not affect the server's advancement registry.
- Parameters:
clear- whether to clear the advancements on the player's perspective.remove- a list of advancementNamespacedKeysto remove from the player's perspective.player- the player this advancement message is for- Returns:
- a resulting
AdvancementsMessagepacket
-
createAdvancementsMessage
public AdvancementsMessage createAdvancementsMessage(Map<org.bukkit.NamespacedKey, org.bukkit.advancement.Advancement> advancements, boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player) Creates anAdvancementsMessagecontaining a given list of advancements, along with some extra actions.This does not affect the server's advancement registry.
- Parameters:
advancements- the advancements to add to the player's perspective.clear- whether to clear the advancements on the player's perspective.remove- a list of advancementNamespacedKeysto remove from the player's perspective.player- the player this advancement message is for- Returns:
- a resulting
AdvancementsMessagepacket
-
getSessionRegistry
Gets the session registry.- Returns:
- The
SessionRegistry.
-
getEntityIdManager
Gets the entity id manager.- Returns:
- The
EntityIdManager.
-
getOpsList
Returns the list of operators on this server.- Returns:
- A file containing a list of UUIDs for this server's operators.
-
getWhitelist
Returns the list of whitelisted players on this server.- Returns:
- A file containing a list of UUIDs for this server's whitelisted players.
-
setWhitelist
public void setWhitelist(boolean enabled) - Specified by:
setWhitelistin interfaceorg.bukkit.Server
-
isWhitelistEnforced
public boolean isWhitelistEnforced()- Specified by:
isWhitelistEnforcedin interfaceorg.bukkit.Server
-
setWhitelistEnforced
public void setWhitelistEnforced(boolean value) - Specified by:
setWhitelistEnforcedin interfaceorg.bukkit.Server
-
getConfigDir
Returns the folder where configuration files are stored.- Returns:
- The server's configuration folder.
-
getRecipeManager
public net.glowstone.datapack.RecipeManager getRecipeManager()Return the recipe manager.- Returns:
- The server's recipe manager.
-
getFuelManager
public net.glowstone.datapack.FuelManager getFuelManager()Return the fuel manager.- Returns:
- The server's fuel manager.
-
getKeyPair
The key pair generated at server start up.- Returns:
- The key pair generated at server start up
-
getPlayerDataService
Returns the player data service attached to the first world.- Returns:
- The server's player data service.
-
getScoreboardIoService
Returns the scoreboard I/O service attached to the first world.- Returns:
- The server's scoreboard I/O service
-
getPlayerStatisticIoService
Returns the player statistics I/O service attached to the first world.- Returns:
- the server's statistics I/O service
-
getCompressionThreshold
public int getCompressionThreshold()Get the threshold to use for network compression defined in the config.- Returns:
- The compression threshold, or -1 for no compression.
-
getDifficulty
public org.bukkit.Difficulty getDifficulty()Get the default game difficulty defined in the config.- Returns:
- The default difficulty.
-
keepSpawnLoaded
public boolean keepSpawnLoaded()Get whether worlds should keep their spawns loaded by default.- Returns:
- Whether to keep spawns loaded by default.
-
populateAnchoredChunks
public boolean populateAnchoredChunks()Get whether to populate chunks when they are anchored.- Returns:
- Whether to populate chunks when they are anchored.
-
getProxySupport
public boolean getProxySupport()Get whether parsing of data provided by a proxy is enabled.- Returns:
- True if a proxy is providing data to use.
-
useRconColors
public boolean useRconColors()Get whether to use color codes in Rcon responses.- Returns:
- True if color codes will be present in Rcon responses
-
getMaterialValueManager
Gets theMaterialValueManagerfor this server.- Returns:
- the
MaterialValueManagerfor this server.
-
getResourcePackUrl
Get the resource pack url for this server, ornullif not set.- Returns:
- The url of the resource pack to use, or
null
-
getResourcePackHash
Get the resource pack hash for this server, or the empty string if not set.- Specified by:
getResourcePackHashin interfaceorg.bukkit.Server- Returns:
- The hash of the resource pack, or the empty string
-
getResourcePackPrompt
- Specified by:
getResourcePackPromptin interfaceorg.bukkit.Server
-
isResourcePackRequired
public boolean isResourcePackRequired()- Specified by:
isResourcePackRequiredin interfaceorg.bukkit.Server
-
getProfileLookupTimeout
public int getProfileLookupTimeout()Get the time after a profile lookup should be cancelled.- Returns:
- The maximum lookup time in seconds or zero to never cancel the lookup.
-
setPlayerOnline
Sets a player as being online internally.- Parameters:
player- player to set online/offlineonline- whether the player is online or offline
-
getPluginsFolder
- Specified by:
getPluginsFolderin interfaceorg.bukkit.Server
-
getName
- Specified by:
getNamein interfaceorg.bukkit.Server
-
getVersion
- Specified by:
getVersionin interfaceorg.bukkit.Server
-
getBukkitVersion
- Specified by:
getBukkitVersionin interfaceorg.bukkit.Server
-
getMinecraftVersion
- Specified by:
getMinecraftVersionin interfaceorg.bukkit.Server
-
getLogger
- Specified by:
getLoggerin interfaceorg.bukkit.Server
-
isPrimaryThread
public boolean isPrimaryThread()- Specified by:
isPrimaryThreadin interfaceorg.bukkit.Server
-
getPluginManager
public org.bukkit.plugin.PluginManager getPluginManager()- Specified by:
getPluginManagerin interfaceorg.bukkit.Server
-
getScheduler
- Specified by:
getSchedulerin interfaceorg.bukkit.Server
-
getServicesManager
public org.bukkit.plugin.ServicesManager getServicesManager()- Specified by:
getServicesManagerin interfaceorg.bukkit.Server
-
getMessenger
public org.bukkit.plugin.messaging.Messenger getMessenger()- Specified by:
getMessengerin interfaceorg.bukkit.Server
-
getHelpMap
public org.bukkit.help.HelpMap getHelpMap()- Specified by:
getHelpMapin interfaceorg.bukkit.Server
-
getItemFactory
public org.bukkit.inventory.ItemFactory getItemFactory()- Specified by:
getItemFactoryin interfaceorg.bukkit.Server
-
getScoreboardManager
- Specified by:
getScoreboardManagerin interfaceorg.bukkit.Server
-
getUnsafe
Deprecated.- Specified by:
getUnsafein interfaceorg.bukkit.Server
-
spigot
public org.bukkit.Server.Spigot spigot()- Specified by:
spigotin interfaceorg.bukkit.Server
-
reloadPermissions
public void reloadPermissions()- Specified by:
reloadPermissionsin interfaceorg.bukkit.Server
-
getEntity
- Specified by:
getEntityin interfaceorg.bukkit.Server
-
reloadCommandAliases
public boolean reloadCommandAliases()- Specified by:
reloadCommandAliasesin interfaceorg.bukkit.Server
-
suggestPlayerNamesWhenNullTabCompletions
public boolean suggestPlayerNamesWhenNullTabCompletions()- Specified by:
suggestPlayerNamesWhenNullTabCompletionsin interfaceorg.bukkit.Server
-
getPermissionMessage
- Specified by:
getPermissionMessagein interfaceorg.bukkit.Server
-
permissionMessage
@NotNull public @NotNull net.kyori.adventure.text.Component permissionMessage()- Specified by:
permissionMessagein interfaceorg.bukkit.Server
-
createProfile
- Specified by:
createProfilein interfaceorg.bukkit.Server
-
createProfile
- Specified by:
createProfilein interfaceorg.bukkit.Server
-
createProfile
- Specified by:
createProfilein interfaceorg.bukkit.Server
-
createProfileExact
public @NotNull com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable @Nullable UUID uuid, @Nullable @Nullable String name) - Specified by:
createProfileExactin interfaceorg.bukkit.Server
-
createProfile
Creates a player profile.- Parameters:
name- The player's name.uuid- The player's UUID; may be null.asyncLookup- If true anduuidis null, the UUID is looked up asynchronously.- Returns:
- The player's profile.
-
getBanList
public org.bukkit.BanList getBanList(org.bukkit.BanList.Type type) - Specified by:
getBanListin interfaceorg.bukkit.Server
-
getConsoleSender
public org.bukkit.command.ConsoleCommandSender getConsoleSender()- Specified by:
getConsoleSenderin interfaceorg.bukkit.Server
-
createCommandSender
@NotNull public @NotNull org.bukkit.command.CommandSender createCommandSender(@NotNull @NotNull Consumer<? super net.kyori.adventure.text.Component> feedback) - Specified by:
createCommandSenderin interfaceorg.bukkit.Server
-
getPluginCommand
- Specified by:
getPluginCommandin interfaceorg.bukkit.Server
-
getCommandAliases
- Specified by:
getCommandAliasesin interfaceorg.bukkit.Server
-
dispatchCommand
public boolean dispatchCommand(org.bukkit.command.CommandSender sender, String commandLine) throws org.bukkit.command.CommandException - Specified by:
dispatchCommandin interfaceorg.bukkit.Server- Throws:
org.bukkit.command.CommandException
-
getOperators
- Specified by:
getOperatorsin interfaceorg.bukkit.Server
-
getOnlinePlayers
- Specified by:
getOnlinePlayersin interfaceorg.bukkit.Server
-
getRawOnlinePlayers
Gets the modifiable set of the server's online players.- Returns:
- the server's modifiable set of players.
-
getOfflinePlayers
public org.bukkit.OfflinePlayer[] getOfflinePlayers()- Specified by:
getOfflinePlayersin interfaceorg.bukkit.Server
-
getOfflinePlayersAsync
Gets every player that has ever played on this server.- Returns:
- An OfflinePlayer[] future.
-
getPlayer
- Specified by:
getPlayerin interfaceorg.bukkit.Server
-
getPlayer
- Specified by:
getPlayerin interfaceorg.bukkit.Server
-
getPlayerUniqueId
- Specified by:
getPlayerUniqueIdin interfaceorg.bukkit.Server
-
getPlayerExact
- Specified by:
getPlayerExactin interfaceorg.bukkit.Server
-
matchPlayer
- Specified by:
matchPlayerin interfaceorg.bukkit.Server
-
getOfflinePlayer
Creates a newGlowOfflinePlayerinstance for the givenGlowPlayerProfile.- Parameters:
profile- the player's profile.- Returns:
- a new
GlowOfflinePlayerinstance for the given profile.
-
getOfflinePlayer
Deprecated.- Specified by:
getOfflinePlayerin interfaceorg.bukkit.Server
-
getOfflinePlayer
- Specified by:
getOfflinePlayerin interfaceorg.bukkit.Server
-
createPlayerProfile
@NotNull public @NotNull org.bukkit.profile.PlayerProfile createPlayerProfile(@Nullable @Nullable UUID uniqueId, @Nullable @Nullable String name) - Specified by:
createPlayerProfilein interfaceorg.bukkit.Server
-
createPlayerProfile
@NotNull public @NotNull org.bukkit.profile.PlayerProfile createPlayerProfile(@NotNull @NotNull UUID uniqueId) - Specified by:
createPlayerProfilein interfaceorg.bukkit.Server
-
createPlayerProfile
@NotNull public @NotNull org.bukkit.profile.PlayerProfile createPlayerProfile(@NotNull @NotNull String name) - Specified by:
createPlayerProfilein interfaceorg.bukkit.Server
-
getOfflinePlayerIfCached
- Specified by:
getOfflinePlayerIfCachedin interfaceorg.bukkit.Server
-
getOfflinePlayerAsync
Creates a newGlowOfflinePlayerinstance for the given name.- Parameters:
name- the player's name to look up.- Returns:
- a
GlowOfflinePlayerfuture for the given name.
-
getOfflinePlayerAsync
Creates a newGlowOfflinePlayerinstance for the given uuid.- Parameters:
uuid- the player's uuid.- Returns:
- a
GlowOfflinePlayerfuture for the given name.
-
savePlayers
public void savePlayers()- Specified by:
savePlayersin interfaceorg.bukkit.Server
-
broadcast
- Specified by:
broadcastin interfaceorg.bukkit.Server
-
broadcast
public int broadcast(@NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
broadcastin interfaceorg.bukkit.Server
-
broadcast
public int broadcast(@NotNull @NotNull net.kyori.adventure.text.Component component, @NotNull @NotNull String s) - Specified by:
broadcastin interfaceorg.bukkit.Server
-
broadcast
public void broadcast(net.md_5.bungee.api.chat.BaseComponent component) - Specified by:
broadcastin interfaceorg.bukkit.Server
-
broadcast
public void broadcast(net.md_5.bungee.api.chat.BaseComponent... components) - Specified by:
broadcastin interfaceorg.bukkit.Server
-
broadcastMessage
- Specified by:
broadcastMessagein interfaceorg.bukkit.Server
-
broadcastPacket
public void broadcastPacket(com.flowpowered.network.Message message) Broadcasts a packet for all online players.- Parameters:
message- the packet to broadcast.
-
getWhitelistedPlayers
- Specified by:
getWhitelistedPlayersin interfaceorg.bukkit.Server
-
reloadWhitelist
public void reloadWhitelist()- Specified by:
reloadWhitelistin interfaceorg.bukkit.Server
-
getIPBans
- Specified by:
getIPBansin interfaceorg.bukkit.Server
-
banIP
- Specified by:
banIPin interfaceorg.bukkit.Server
-
unbanIP
- Specified by:
unbanIPin interfaceorg.bukkit.Server
-
getBannedPlayers
- Specified by:
getBannedPlayersin interfaceorg.bukkit.Server
-
sendPlayerAbilities
Sends aGlowPlayertheir abilities regarding flying and walking.- Parameters:
player- The player who is being sent their abilities.
-
getWorld
- Specified by:
getWorldin interfaceorg.bukkit.Server
-
getWorld
- Specified by:
getWorldin interfaceorg.bukkit.Server
-
getWorld
public org.bukkit.World getWorld(@NotNull @NotNull org.bukkit.NamespacedKey namespacedKey) - Specified by:
getWorldin interfaceorg.bukkit.Server
-
createWorldBorder
@NotNull public @NotNull org.bukkit.WorldBorder createWorldBorder()- Specified by:
createWorldBorderin interfaceorg.bukkit.Server
-
getMap
- Specified by:
getMapin interfaceorg.bukkit.Server
-
createMap
- Specified by:
createMapin interfaceorg.bukkit.Server
-
createExplorerMap
@NotNull public @NotNull org.bukkit.inventory.ItemStack createExplorerMap(@NotNull @NotNull org.bukkit.World world, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.StructureType structureType) - Specified by:
createExplorerMapin interfaceorg.bukkit.Server
-
createExplorerMap
@NotNull public @NotNull org.bukkit.inventory.ItemStack createExplorerMap(@NotNull @NotNull org.bukkit.World world, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.StructureType structureType, int i, boolean b) - Specified by:
createExplorerMapin interfaceorg.bukkit.Server
-
getWorlds
- Specified by:
getWorldsin interfaceorg.bukkit.Server
-
createWorld
- Specified by:
createWorldin interfaceorg.bukkit.Server
-
unloadWorld
- Specified by:
unloadWorldin interfaceorg.bukkit.Server
-
unloadWorld
public boolean unloadWorld(org.bukkit.World world, boolean save) - Specified by:
unloadWorldin interfaceorg.bukkit.Server
-
getRecipesFor
- Specified by:
getRecipesForin interfaceorg.bukkit.Server
-
getRecipe
public org.bukkit.inventory.Recipe getRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key) - Specified by:
getRecipein interfaceorg.bukkit.Server
-
getCraftingRecipe
@Nullable public @Nullable org.bukkit.inventory.Recipe getCraftingRecipe(@NotNull @NotNull org.bukkit.inventory.ItemStack[] craftingMatrix, @NotNull @NotNull org.bukkit.World world) - Specified by:
getCraftingRecipein interfaceorg.bukkit.Server
-
craftItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack craftItem(@NotNull @NotNull org.bukkit.inventory.ItemStack[] craftingMatrix, @NotNull @NotNull org.bukkit.World world, @NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
craftItemin interfaceorg.bukkit.Server
-
recipeIterator
- Specified by:
recipeIteratorin interfaceorg.bukkit.Server
-
addRecipe
public boolean addRecipe(org.bukkit.inventory.Recipe recipe) - Specified by:
addRecipein interfaceorg.bukkit.Server
-
clearRecipes
public void clearRecipes()- Specified by:
clearRecipesin interfaceorg.bukkit.Server
-
resetRecipes
public void resetRecipes()- Specified by:
resetRecipesin interfaceorg.bukkit.Server
-
removeRecipe
public boolean removeRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key) - Specified by:
removeRecipein interfaceorg.bukkit.Server
-
createInventory
public org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.event.inventory.InventoryType type) - Specified by:
createInventoryin interfaceorg.bukkit.Server
-
createInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory createInventory(@Nullable @Nullable org.bukkit.inventory.InventoryHolder inventoryHolder, @NotNull @NotNull org.bukkit.event.inventory.InventoryType inventoryType, @NotNull @NotNull net.kyori.adventure.text.Component component) - Specified by:
createInventoryin interfaceorg.bukkit.Server
-
createInventory
public org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.event.inventory.InventoryType type, String title) - Specified by:
createInventoryin interfaceorg.bukkit.Server
-
createInventory
public org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner, int size) - Specified by:
createInventoryin interfaceorg.bukkit.Server
-
createInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory createInventory(@Nullable @Nullable org.bukkit.inventory.InventoryHolder inventoryHolder, int i, @NotNull @NotNull net.kyori.adventure.text.Component component) throws IllegalArgumentException - Specified by:
createInventoryin interfaceorg.bukkit.Server- Throws:
IllegalArgumentException
-
createInventory
public org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner, int size, String title) - Specified by:
createInventoryin interfaceorg.bukkit.Server
-
createMerchant
@NotNull public @NotNull org.bukkit.inventory.Merchant createMerchant(@Nullable @Nullable net.kyori.adventure.text.Component component) - Specified by:
createMerchantin interfaceorg.bukkit.Server
-
createMerchant
- Specified by:
createMerchantin interfaceorg.bukkit.Server
-
getServerIcon
- Specified by:
getServerIconin interfaceorg.bukkit.Server
-
loadServerIcon
- Specified by:
loadServerIconin interfaceorg.bukkit.Server- Throws:
Exception
-
loadServerIcon
- Specified by:
loadServerIconin interfaceorg.bukkit.Server- Throws:
Exception
-
sendPluginMessage
- Specified by:
sendPluginMessagein interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getListeningPluginChannels
- Specified by:
getListeningPluginChannelsin interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getDefaultGameMode
public org.bukkit.GameMode getDefaultGameMode()- Specified by:
getDefaultGameModein interfaceorg.bukkit.Server
-
setDefaultGameMode
public void setDefaultGameMode(org.bukkit.GameMode mode) - Specified by:
setDefaultGameModein interfaceorg.bukkit.Server
-
getSpawnRadius
public int getSpawnRadius()- Specified by:
getSpawnRadiusin interfaceorg.bukkit.Server
-
setSpawnRadius
public void setSpawnRadius(int value) - Specified by:
setSpawnRadiusin interfaceorg.bukkit.Server
-
getHideOnlinePlayers
public boolean getHideOnlinePlayers()- Specified by:
getHideOnlinePlayersin interfaceorg.bukkit.Server
-
hasWhitelist
public boolean hasWhitelist()- Specified by:
hasWhitelistin interfaceorg.bukkit.Server
-
getWarningState
public org.bukkit.Warning.WarningState getWarningState()- Specified by:
getWarningStatein interfaceorg.bukkit.Server
-
getIdleTimeout
public int getIdleTimeout()- Specified by:
getIdleTimeoutin interfaceorg.bukkit.Server
-
setIdleTimeout
public void setIdleTimeout(int timeout) - Specified by:
setIdleTimeoutin interfaceorg.bukkit.Server
-
createChunkData
public org.bukkit.generator.ChunkGenerator.ChunkData createChunkData(org.bukkit.World world) - Specified by:
createChunkDatain interfaceorg.bukkit.Server
-
createVanillaChunkData
public org.bukkit.generator.ChunkGenerator.ChunkData createVanillaChunkData(org.bukkit.World world, int x, int z) - Specified by:
createVanillaChunkDatain interfaceorg.bukkit.Server
-
createBossBar
public org.bukkit.boss.BossBar createBossBar(String title, org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle style, org.bukkit.boss.BarFlag... flags) - Specified by:
createBossBarin interfaceorg.bukkit.Server
-
createBossBar
@NotNull public @NotNull org.bukkit.boss.KeyedBossBar createBossBar(org.bukkit.NamespacedKey key, @Nullable String title, org.bukkit.boss.BarColor barColor, org.bukkit.boss.BarStyle barStyle, org.bukkit.boss.BarFlag... barFlags) - Specified by:
createBossBarin interfaceorg.bukkit.Server
-
getBossBars
- Specified by:
getBossBarsin interfaceorg.bukkit.Server
-
getBossBar
@Nullable public @Nullable org.bukkit.boss.KeyedBossBar getBossBar(@NotNull @NotNull org.bukkit.NamespacedKey namespacedKey) - Specified by:
getBossBarin interfaceorg.bukkit.Server
-
removeBossBar
public boolean removeBossBar(@NotNull @NotNull org.bukkit.NamespacedKey namespacedKey) - Specified by:
removeBossBarin interfaceorg.bukkit.Server
-
getTPS
public double[] getTPS()- Specified by:
getTPSin interfaceorg.bukkit.Server
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.bukkit.Server
-
setPort
public void setPort(int port) Sets the port that the Query server will expose.This does not change the port the server will run on.
- Parameters:
port- the port number
-
getIp
- Specified by:
getIpin interfaceorg.bukkit.Server
-
setIp
Sets the IP address that the Query server will expose.This does not change the IP address the server will run on.
- Parameters:
ip- the IP address
-
getConfig
Gets the server configuration.- Returns:
- the server configuration.
-
getWorldConfig
Gets the world configuration for this server.- Returns:
- the world configuration for this server.
-
getServerName
-
getServerId
-
getUpdateFolder
- Specified by:
getUpdateFolderin interfaceorg.bukkit.Server
-
getUpdateFolderFile
- Specified by:
getUpdateFolderFilein interfaceorg.bukkit.Server
-
getOnlineMode
public boolean getOnlineMode()- Specified by:
getOnlineModein interfaceorg.bukkit.Server
-
getAllowNether
public boolean getAllowNether()- Specified by:
getAllowNetherin interfaceorg.bukkit.Server
-
getResourcePack
- Specified by:
getResourcePackin interfaceorg.bukkit.Server
-
getAllowEnd
public boolean getAllowEnd()- Specified by:
getAllowEndin interfaceorg.bukkit.Server
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceorg.bukkit.Server
-
getSimulationDistance
public int getSimulationDistance()- Specified by:
getSimulationDistancein interfaceorg.bukkit.Server
-
getMotd
- Specified by:
getMotdin interfaceorg.bukkit.Server
-
motd
@NotNull public @NotNull net.kyori.adventure.text.Component motd()- Specified by:
motdin interfaceorg.bukkit.Server
-
getWorldContainer
- Specified by:
getWorldContainerin interfaceorg.bukkit.Server
-
getWorldType
- Specified by:
getWorldTypein interfaceorg.bukkit.Server
-
getGenerateStructures
public boolean getGenerateStructures()- Specified by:
getGenerateStructuresin interfaceorg.bukkit.Server
-
getConnectionThrottle
public long getConnectionThrottle()- Specified by:
getConnectionThrottlein interfaceorg.bukkit.Server
-
getMonstersSpawnEnabled
public boolean getMonstersSpawnEnabled()Gets whether monster spawning is enabled.- Returns:
- true if monster spawning is enabled, false otherwise.
-
getAnimalsSpawnEnabled
public boolean getAnimalsSpawnEnabled()Gets whether animal spawning is enabled.- Returns:
- true if animal spawning is enabled, false otherwise.
-
getTicksPerAnimalSpawns
public int getTicksPerAnimalSpawns()- Specified by:
getTicksPerAnimalSpawnsin interfaceorg.bukkit.Server
-
getTicksPerMonsterSpawns
public int getTicksPerMonsterSpawns()- Specified by:
getTicksPerMonsterSpawnsin interfaceorg.bukkit.Server
-
getTicksPerWaterSpawns
public int getTicksPerWaterSpawns()- Specified by:
getTicksPerWaterSpawnsin interfaceorg.bukkit.Server
-
getTicksPerWaterAmbientSpawns
public int getTicksPerWaterAmbientSpawns()- Specified by:
getTicksPerWaterAmbientSpawnsin interfaceorg.bukkit.Server
-
getTicksPerWaterUndergroundCreatureSpawns
public int getTicksPerWaterUndergroundCreatureSpawns()- Specified by:
getTicksPerWaterUndergroundCreatureSpawnsin interfaceorg.bukkit.Server
-
getTicksPerAmbientSpawns
public int getTicksPerAmbientSpawns()- Specified by:
getTicksPerAmbientSpawnsin interfaceorg.bukkit.Server
-
getTicksPerSpawns
public int getTicksPerSpawns(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory) - Specified by:
getTicksPerSpawnsin interfaceorg.bukkit.Server
-
getTickTimes
public long[] getTickTimes()- Specified by:
getTickTimesin interfaceorg.bukkit.Server
-
getAverageTickTime
public double getAverageTickTime()- Specified by:
getAverageTickTimein interfaceorg.bukkit.Server
-
getCurrentTick
public int getCurrentTick()- Specified by:
getCurrentTickin interfaceorg.bukkit.Server
-
isStopping
public boolean isStopping()- Specified by:
isStoppingin interfaceorg.bukkit.Server
-
getMobGoals
public com.destroystokyo.paper.entity.ai.MobGoals getMobGoals()- Specified by:
getMobGoalsin interfaceorg.bukkit.Server
-
getDatapackManager
@NotNull public @NotNull io.papermc.paper.datapack.DatapackManager getDatapackManager()- Specified by:
getDatapackManagerin interfaceorg.bukkit.Server
-
getPotionBrewer
@NotNull public @NotNull org.bukkit.potion.PotionBrewer getPotionBrewer()- Specified by:
getPotionBrewerin interfaceorg.bukkit.Server
-
isHardcore
public boolean isHardcore()- Specified by:
isHardcorein interfaceorg.bukkit.Server
-
isPvpEnabled
public boolean isPvpEnabled()Gets whether PVP is enabled on the server.- Returns:
- true if PVP is enabled on the server, false otherwise.
-
getMonsterSpawnLimit
public int getMonsterSpawnLimit()- Specified by:
getMonsterSpawnLimitin interfaceorg.bukkit.Server
-
getAnimalSpawnLimit
public int getAnimalSpawnLimit()- Specified by:
getAnimalSpawnLimitin interfaceorg.bukkit.Server
-
getWaterAnimalSpawnLimit
public int getWaterAnimalSpawnLimit()- Specified by:
getWaterAnimalSpawnLimitin interfaceorg.bukkit.Server
-
getAmbientSpawnLimit
public int getAmbientSpawnLimit()- Specified by:
getAmbientSpawnLimitin interfaceorg.bukkit.Server
-
getSpawnLimit
public int getSpawnLimit(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory) - Specified by:
getSpawnLimitin interfaceorg.bukkit.Server
-
getWaterAmbientSpawnLimit
public int getWaterAmbientSpawnLimit()- Specified by:
getWaterAmbientSpawnLimitin interfaceorg.bukkit.Server
-
getWaterUndergroundCreatureSpawnLimit
public int getWaterUndergroundCreatureSpawnLimit()- Specified by:
getWaterUndergroundCreatureSpawnLimitin interfaceorg.bukkit.Server
-
getShutdownMessage
- Specified by:
getShutdownMessagein interfaceorg.bukkit.Server
-
shutdownMessage
@Nullable public net.kyori.adventure.text.Component shutdownMessage()- Specified by:
shutdownMessagein interfaceorg.bukkit.Server
-
getAllowFlight
public boolean getAllowFlight()- Specified by:
getAllowFlightin interfaceorg.bukkit.Server
-
getMaxBuildHeight
public int getMaxBuildHeight()Gets the max building height of the server.- Returns:
- the max building height of the server, in blocks.
-
getMaxWorldSize
public int getMaxWorldSize()- Specified by:
getMaxWorldSizein interfaceorg.bukkit.Server
-
getClassicWater
public boolean getClassicWater()Whether the server uses the classic water flowing algorithm.- Returns:
- true if the server uses the classic water flowing algorithm, false otherwise.
-
getConsolePrompt
Gets the server's console prompt.- Returns:
- the server's console prompt.
-
getConsoleDateFormat
Gets the server console's date format.- Returns:
- the server console's date format.
-
getConsoleLogDateFormat
Gets the server's console logs date format.- Returns:
- the server's console logs date format.
-
getServerType
Gets the server type (e.g. VANILLA, BUKKIT, FML). The server type is meant to be read by mods and thus is not localized server-side. It is output to clients byStatusRequestHandler.handle(GlowSession, StatusRequestMessage), but should be ignored by vanilla clients and localized client-side by modded clients aware of it.Currently, this value is set to
VANILLA.- Returns:
- the server type.
-
getAllowClientMods
public boolean getAllowClientMods()Gets whether the server allows client mods.This rule is not actually enforced, and is simply exposed to clients as a warning.
- Returns:
- true if client mods are allowed, false otherwise.
-
getPlayerSampleCount
public int getPlayerSampleCount()Gets the maximum size of the player sample as shown on the client's server list when pinging the server.- Returns:
- the maximum size of the player sample as shown on the client's server list.
-
isGenerationDisabled
public boolean isGenerationDisabled()Gets whether world generation is disabled on the server.- Returns:
- true if world generation is disabled on the server, false otherwise.
-
doesUseGraphicsCompute
public boolean doesUseGraphicsCompute()Gets whether the server is OpenCL-capable and allowed to use graphics compute functionality.- Returns:
- true if the server is capable and allowed to use graphics compute functionality, false otherwise.
-
shouldPreventProxy
public boolean shouldPreventProxy()Gets whether the server should prevent player proxy connections.- Returns:
- true if the server should prevent player proxy connections, false otherwise.
-
getStorageProviderFactory
Gets the current storage provider factory, or null if none has been set by a plugin and the server has not started yet. The storage provider factory will be used to initialize storage for each world.- Returns:
- The current storage provider, or null.
-
setStorageProvider
If a storage provider factory has not yet been set, and the server has not fully started yet, this allows plugins to set a storage provider factory, which will be used to create a storage provider for each world. Otherwise, this will throw anIllegalStateException.- Parameters:
storageProviderFactory- The world storage provider that is attempting to be set.
-
audiences
- Specified by:
audiencesin interfacenet.kyori.adventure.audience.ForwardingAudience
-
getBlockDataManager
public net.glowstone.block.data.BlockDataManager getBlockDataManager()What manages the mapping of Material to BlockData and the mapping between State ID and BlockData. -
getNetworkServer
The network server used for network communication. -
getFishingRewardManager
The FishingRewards of this server. -
getMaxPlayers
public int getMaxPlayers()- Specified by:
getMaxPlayersin interfaceorg.bukkit.Server
-
setMaxPlayers
public void setMaxPlayers(int maxPlayers) - Specified by:
setMaxPlayersin interfaceorg.bukkit.Server
-
getRegistry
-