public class GlowServer extends Object implements org.bukkit.Server
| Modifier and Type | Field and Description |
|---|---|
static String |
GAME_VERSION
The game version supported by the server.
|
static Logger |
logger
The logger for this class.
|
org.bukkit.permissions.Permission |
permissionRoot
Default root permissions.
|
org.bukkit.permissions.Permission |
permissionRootCommand
Default root command permissions.
|
static int |
PROTOCOL_VERSION
The protocol version supported by the server.
|
| Constructor and Description |
|---|
GlowServer(ServerConfig config)
Creates a new server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdvancement(org.bukkit.advancement.Advancement advancement)
Registers an advancement to the advancement registry.
|
boolean |
addRecipe(org.bukkit.inventory.Recipe recipe) |
Iterator<org.bukkit.advancement.Advancement> |
advancementIterator() |
void |
banIP(String address) |
void |
broadcast(net.md_5.bungee.api.chat.BaseComponent... components) |
void |
broadcast(net.md_5.bungee.api.chat.BaseComponent component) |
int |
broadcast(String message,
String permission) |
int |
broadcastMessage(String message) |
void |
broadcastPacket(com.flowpowered.network.Message message)
Broadcasts a packet for all online players.
|
void |
clearRecipes() |
AdvancementsMessage |
createAdvancementsMessage(boolean clear,
List<org.bukkit.NamespacedKey> remove,
org.bukkit.entity.Player player)
Creates an
AdvancementsMessage containing a list of advancements the server has,
along with some extra actions. |
AdvancementsMessage |
createAdvancementsMessage(Map<org.bukkit.NamespacedKey,org.bukkit.advancement.Advancement> advancements,
boolean clear,
List<org.bukkit.NamespacedKey> remove,
org.bukkit.entity.Player player)
Creates an
AdvancementsMessage containing a given list of advancements, along with
some extra actions. |
org.bukkit.boss.BossBar |
createBossBar(String title,
org.bukkit.boss.BarColor color,
org.bukkit.boss.BarStyle style,
org.bukkit.boss.BarFlag... flags) |
org.bukkit.generator.ChunkGenerator.ChunkData |
createChunkData(org.bukkit.World world) |
static GlowServer |
createFromArguments(String... args)
Initialize a server using the command-line arguments.
|
org.bukkit.inventory.Inventory |
createInventory(org.bukkit.inventory.InventoryHolder owner,
int size) |
org.bukkit.inventory.Inventory |
createInventory(org.bukkit.inventory.InventoryHolder owner,
int size,
String title) |
org.bukkit.inventory.Inventory |
createInventory(org.bukkit.inventory.InventoryHolder owner,
org.bukkit.event.inventory.InventoryType type) |
org.bukkit.inventory.Inventory |
createInventory(org.bukkit.inventory.InventoryHolder owner,
org.bukkit.event.inventory.InventoryType type,
String title) |
GlowMapView |
createMap(org.bukkit.World world) |
org.bukkit.inventory.Merchant |
createMerchant(String title) |
GlowPlayerProfile |
createProfile(String name) |
GlowPlayerProfile |
createProfile(UUID id) |
GlowPlayerProfile |
createProfile(UUID id,
String name) |
GlowPlayerProfile |
createProfile(UUID uuid,
String name,
boolean asyncLookup)
Creates a player profile.
|
GlowWorld |
createWorld(org.bukkit.WorldCreator creator) |
boolean |
dispatchCommand(org.bukkit.command.CommandSender sender,
String commandLine) |
boolean |
doesUseGraphicsCompute()
Gets whether the server is OpenCL-capable and allowed to use graphics compute functionality.
|
org.bukkit.advancement.Advancement |
getAdvancement(org.bukkit.NamespacedKey namespacedKey) |
boolean |
getAllowClientMods()
Gets whether the server allows client mods.
|
boolean |
getAllowEnd() |
boolean |
getAllowFlight() |
boolean |
getAllowNether() |
int |
getAmbientSpawnLimit() |
int |
getAnimalSpawnLimit() |
boolean |
getAnimalsSpawnEnabled()
Gets whether animal spawning is enabled.
|
boolean |
getAnnounceAchievements()
Get whether achievements should be announced.
|
org.bukkit.BanList |
getBanList(org.bukkit.BanList.Type type) |
Set<org.bukkit.OfflinePlayer> |
getBannedPlayers() |
String |
getBukkitVersion() |
boolean |
getClassicWater()
Whether the server uses the classic water flowing algorithm.
|
Map<String,String[]> |
getCommandAliases() |
org.bukkit.command.SimpleCommandMap |
getCommandMap()
Gets the command map.
|
int |
getCompressionThreshold()
Get the threshold to use for network compression defined in the config.
|
ServerConfig |
getConfig()
Gets the server configuration.
|
File |
getConfigDir()
Returns the folder where configuration files are stored.
|
long |
getConnectionThrottle() |
String |
getConsoleDateFormat()
Gets the server console's date format.
|
String |
getConsoleLogDateFormat()
Gets the server's console logs date format.
|
String |
getConsolePrompt()
Gets the server's console prompt.
|
org.bukkit.command.ConsoleCommandSender |
getConsoleSender() |
CraftingManager |
getCraftingManager()
Return the crafting manager.
|
org.bukkit.GameMode |
getDefaultGameMode() |
org.bukkit.Difficulty |
getDifficulty()
Get the default game difficulty defined in the config.
|
org.bukkit.entity.Entity |
getEntity(UUID uuid) |
EntityIdManager |
getEntityIdManager()
Gets the entity id manager.
|
FishingRewardManager |
getFishingRewardManager()
The FishingRewards of this server.
|
boolean |
getGenerateStructures() |
org.bukkit.help.HelpMap |
getHelpMap() |
int |
getIdleTimeout() |
String |
getIp() |
Set<String> |
getIPBans() |
org.bukkit.inventory.ItemFactory |
getItemFactory() |
KeyPair |
getKeyPair()
The key pair generated at server start up.
|
Set<String> |
getListeningPluginChannels() |
Logger |
getLogger() |
GlowMapView |
getMap(short id) |
MaterialValueManager |
getMaterialValueManager()
Gets the
MaterialValueManager for this server. |
int |
getMaxBuildHeight()
Gets the max building height of the server.
|
int |
getMaxPlayers() |
org.bukkit.plugin.messaging.Messenger |
getMessenger() |
int |
getMonsterSpawnLimit() |
boolean |
getMonstersSpawnEnabled()
Gets whether monster spawning is enabled.
|
String |
getMotd() |
String |
getName() |
GameServer |
getNetworkServer()
The network server used for network communication.
|
org.bukkit.OfflinePlayer |
getOfflinePlayer(GlowPlayerProfile profile)
Creates a new
GlowOfflinePlayer instance for the given GlowPlayerProfile. |
org.bukkit.OfflinePlayer |
getOfflinePlayer(String name)
Deprecated.
|
org.bukkit.OfflinePlayer |
getOfflinePlayer(UUID uuid) |
CompletableFuture<org.bukkit.OfflinePlayer> |
getOfflinePlayerAsync(String name)
Creates a new
GlowOfflinePlayer instance for the given name. |
CompletableFuture<org.bukkit.OfflinePlayer> |
getOfflinePlayerAsync(UUID uuid)
Creates a new
GlowOfflinePlayer instance for the given uuid. |
org.bukkit.OfflinePlayer[] |
getOfflinePlayers() |
CompletableFuture<org.bukkit.OfflinePlayer[]> |
getOfflinePlayersAsync()
Gets every player that has ever played on this server.
|
boolean |
getOnlineMode() |
Collection<? extends org.bukkit.entity.Player> |
getOnlinePlayers() |
Set<org.bukkit.OfflinePlayer> |
getOperators() |
UuidListFile |
getOpsList()
Returns the list of operators on this server.
|
org.bukkit.entity.Player |
getPlayer(String name) |
org.bukkit.entity.Player |
getPlayer(UUID uuid) |
PlayerDataService |
getPlayerDataService()
Returns the player data service attached to the first world.
|
org.bukkit.entity.Player |
getPlayerExact(String name) |
int |
getPlayerSampleCount()
Gets the maximum size of the player sample as shown on the client's server list when pinging
the server.
|
PlayerStatisticIoService |
getPlayerStatisticIoService()
Returns the player statistics I/O service attached to the first world.
|
UUID |
getPlayerUniqueId(String playerName) |
org.bukkit.command.PluginCommand |
getPluginCommand(String name) |
org.bukkit.plugin.PluginManager |
getPluginManager() |
int |
getPort() |
int |
getProfileLookupTimeout()
Get the time after a profile lookup should be cancelled.
|
boolean |
getProxySupport()
Get whether parsing of data provided by a proxy is enabled.
|
Collection<GlowPlayer> |
getRawOnlinePlayers()
Gets the modifiable set of the server's online players.
|
List<org.bukkit.inventory.Recipe> |
getRecipesFor(org.bukkit.inventory.ItemStack result) |
String |
getResourcePackHash()
Get the resource pack hash for this server, or the empty string if not set.
|
String |
getResourcePackUrl()
Get the resource pack url for this server, or
null if not set. |
GlowScheduler |
getScheduler() |
ScoreboardIoService |
getScoreboardIoService()
Returns the scoreboard I/O service attached to the first world.
|
GlowScoreboardManager |
getScoreboardManager() |
GlowServerIcon |
getServerIcon() |
String |
getServerId() |
String |
getServerName() |
String |
getServerType()
Gets the server type (e.g.
|
org.bukkit.plugin.ServicesManager |
getServicesManager() |
SessionRegistry |
getSessionRegistry()
Gets the session registry.
|
String |
getShutdownMessage() |
int |
getSpawnRadius() |
List<File> |
getSpongePlugins()
A list of detected files that are Sponge plugins.
|
WorldStorageProviderFactory |
getStorageProviderFactory()
Gets the current storage provider factory, or null if none has been set by a plugin and the
server has not started yet.
|
int |
getTicksPerAnimalSpawns() |
int |
getTicksPerMonsterSpawns() |
double[] |
getTPS() |
org.bukkit.UnsafeValues |
getUnsafe()
Deprecated.
|
String |
getUpdateFolder() |
File |
getUpdateFolderFile() |
String |
getVersion() |
int |
getViewDistance() |
org.bukkit.Warning.WarningState |
getWarningState() |
int |
getWaterAnimalSpawnLimit() |
UuidListFile |
getWhitelist()
Returns the list of whitelisted players on this server.
|
Set<org.bukkit.OfflinePlayer> |
getWhitelistedPlayers() |
GlowWorld |
getWorld(String name) |
GlowWorld |
getWorld(UUID uid) |
static WorldConfig |
getWorldConfig()
Gets the world configuration for this server.
|
File |
getWorldContainer() |
List<org.bukkit.World> |
getWorlds() |
String |
getWorldType() |
boolean |
hasWhitelist() |
boolean |
isGenerationDisabled()
Gets whether world generation is disabled on the server.
|
boolean |
isHardcore() |
boolean |
isPrimaryThread() |
boolean |
isPvpEnabled()
Gets whether PVP is enabled on the server.
|
boolean |
keepSpawnLoaded()
Get whether worlds should keep their spawns loaded by default.
|
org.bukkit.util.CachedServerIcon |
loadServerIcon(BufferedImage image) |
org.bukkit.util.CachedServerIcon |
loadServerIcon(File file) |
static void |
main(String... args)
Creates a new server on TCP port 25565 and starts listening for connections.
|
List<org.bukkit.entity.Player> |
matchPlayer(String name) |
boolean |
populateAnchoredChunks()
Get whether to populate chunks when they are anchored.
|
Iterator<org.bukkit.inventory.Recipe> |
recipeIterator() |
void |
reload()
Reloads the server, refreshing settings and plugin information.
|
boolean |
reloadCommandAliases() |
void |
reloadData() |
void |
reloadPermissions() |
void |
reloadWhitelist() |
void |
resetRecipes() |
void |
run()
Starts the server starting sequence (starting, binding to port, etc.)
|
void |
savePlayers() |
void |
sendPlayerAbilities(GlowPlayer player)
Sends a
GlowPlayer their abilities regarding
flying and walking. |
void |
sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message) |
void |
setDefaultGameMode(org.bukkit.GameMode mode) |
void |
setIdleTimeout(int timeout) |
void |
setIp(String ip)
Sets the IP address that the Query server will expose.
|
void |
setPlayerOnline(GlowPlayer player,
boolean online)
Sets a player as being online internally.
|
void |
setPort(int port)
Sets the port that the Query server will expose.
|
void |
setSpawnRadius(int value) |
void |
setStorageProvider(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.
|
void |
setWhitelist(boolean enabled) |
boolean |
shouldPreventProxy()
Gets whether the server should prevent player proxy connections.
|
void |
shutdown()
Stops this server.
|
void |
shutdown(String message)
Stops this server, sending the specified message to all players on their kick screen.
|
org.bukkit.Server.Spigot |
spigot() |
void |
start()
Starts this server.
|
boolean |
suggestPlayerNamesWhenNullTabCompletions() |
String |
toString() |
void |
unbanIP(String address) |
boolean |
unloadWorld(String name,
boolean save) |
boolean |
unloadWorld(org.bukkit.World world,
boolean save) |
boolean |
useRconColors()
Get whether to use color codes in Rcon responses.
|
public static final Logger logger
public static final String GAME_VERSION
public static final int PROTOCOL_VERSION
public org.bukkit.permissions.Permission permissionRoot
public org.bukkit.permissions.Permission permissionRootCommand
public GlowServer(ServerConfig config)
config - This server's config.public static void main(String... args)
args - The command-line arguments.public static GlowServer createFromArguments(String... args)
args - the command-line arguments--versionpublic void run()
public void start()
public void shutdown()
shutdown in interface org.bukkit.Serverpublic void shutdown(String message)
message - Message to send to all players as they are kickedpublic List<File> getSpongePlugins()
Files that are Sponge plugins.public void reload()
reload in interface org.bukkit.Serverpublic void reloadData()
reloadData in interface org.bukkit.Serverpublic org.bukkit.command.SimpleCommandMap getCommandMap()
getCommandMap in interface org.bukkit.ServerSimpleCommandMap.public org.bukkit.advancement.Advancement getAdvancement(org.bukkit.NamespacedKey namespacedKey)
getAdvancement in interface org.bukkit.Serverpublic Iterator<org.bukkit.advancement.Advancement> advancementIterator()
advancementIterator in interface org.bukkit.Serverpublic void addAdvancement(org.bukkit.advancement.Advancement advancement)
advancement - the advancement to add.public AdvancementsMessage createAdvancementsMessage(boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player)
AdvancementsMessage containing a list of advancements the server has,
along with some extra actions.
This does not affect the server's advancement registry.
clear - whether to clear the advancements on the player's perspective.remove - a list of advancement NamespacedKeys to remove
from the player's perspective.player - the player this advancement message is forAdvancementsMessage packetpublic AdvancementsMessage createAdvancementsMessage(Map<org.bukkit.NamespacedKey,org.bukkit.advancement.Advancement> advancements, boolean clear, List<org.bukkit.NamespacedKey> remove, org.bukkit.entity.Player player)
AdvancementsMessage containing a given list of advancements, along with
some extra actions.
This does not affect the server's advancement registry.
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 advancement NamespacedKeys to remove
from the player's perspective.player - the player this advancement message is forAdvancementsMessage packetpublic SessionRegistry getSessionRegistry()
SessionRegistry.public EntityIdManager getEntityIdManager()
EntityIdManager.public UuidListFile getOpsList()
public UuidListFile getWhitelist()
public void setWhitelist(boolean enabled)
setWhitelist in interface org.bukkit.Serverpublic File getConfigDir()
public CraftingManager getCraftingManager()
public KeyPair getKeyPair()
public PlayerDataService getPlayerDataService()
public ScoreboardIoService getScoreboardIoService()
public PlayerStatisticIoService getPlayerStatisticIoService()
public int getCompressionThreshold()
public org.bukkit.Difficulty getDifficulty()
public boolean keepSpawnLoaded()
public boolean populateAnchoredChunks()
public boolean getProxySupport()
public boolean useRconColors()
public MaterialValueManager getMaterialValueManager()
MaterialValueManager for this server.MaterialValueManager for this server.public String getResourcePackUrl()
null if not set.nullpublic String getResourcePackHash()
public boolean getAnnounceAchievements()
public int getProfileLookupTimeout()
public void setPlayerOnline(GlowPlayer player, boolean online)
player - player to set online/offlineonline - whether the player is online or offlinepublic String getName()
getName in interface org.bukkit.Serverpublic String getVersion()
getVersion in interface org.bukkit.Serverpublic String getBukkitVersion()
getBukkitVersion in interface org.bukkit.Serverpublic Logger getLogger()
getLogger in interface org.bukkit.Serverpublic boolean isPrimaryThread()
isPrimaryThread in interface org.bukkit.Serverpublic org.bukkit.plugin.PluginManager getPluginManager()
getPluginManager in interface org.bukkit.Serverpublic GlowScheduler getScheduler()
getScheduler in interface org.bukkit.Serverpublic org.bukkit.plugin.ServicesManager getServicesManager()
getServicesManager in interface org.bukkit.Serverpublic org.bukkit.plugin.messaging.Messenger getMessenger()
getMessenger in interface org.bukkit.Serverpublic org.bukkit.help.HelpMap getHelpMap()
getHelpMap in interface org.bukkit.Serverpublic org.bukkit.inventory.ItemFactory getItemFactory()
getItemFactory in interface org.bukkit.Serverpublic GlowScoreboardManager getScoreboardManager()
getScoreboardManager in interface org.bukkit.Server@Deprecated public org.bukkit.UnsafeValues getUnsafe()
getUnsafe in interface org.bukkit.Serverpublic org.bukkit.Server.Spigot spigot()
spigot in interface org.bukkit.Serverpublic void reloadPermissions()
reloadPermissions in interface org.bukkit.Serverpublic org.bukkit.entity.Entity getEntity(UUID uuid)
getEntity in interface org.bukkit.Serverpublic boolean reloadCommandAliases()
reloadCommandAliases in interface org.bukkit.Serverpublic boolean suggestPlayerNamesWhenNullTabCompletions()
suggestPlayerNamesWhenNullTabCompletions in interface org.bukkit.Serverpublic GlowPlayerProfile createProfile(UUID id)
createProfile in interface org.bukkit.Serverpublic GlowPlayerProfile createProfile(String name)
createProfile in interface org.bukkit.Serverpublic GlowPlayerProfile createProfile(UUID id, String name)
createProfile in interface org.bukkit.Serverpublic GlowPlayerProfile createProfile(UUID uuid, String name, boolean asyncLookup)
name - The player's name.uuid - The player's UUID; may be null.asyncLookup - If true and uuid is null, the UUID is looked up asynchronously.public org.bukkit.BanList getBanList(org.bukkit.BanList.Type type)
getBanList in interface org.bukkit.Serverpublic org.bukkit.command.ConsoleCommandSender getConsoleSender()
getConsoleSender in interface org.bukkit.Serverpublic org.bukkit.command.PluginCommand getPluginCommand(String name)
getPluginCommand in interface org.bukkit.Serverpublic Map<String,String[]> getCommandAliases()
getCommandAliases in interface org.bukkit.Serverpublic boolean dispatchCommand(org.bukkit.command.CommandSender sender,
String commandLine)
throws org.bukkit.command.CommandException
dispatchCommand in interface org.bukkit.Serverorg.bukkit.command.CommandExceptionpublic Set<org.bukkit.OfflinePlayer> getOperators()
getOperators in interface org.bukkit.Serverpublic Collection<? extends org.bukkit.entity.Player> getOnlinePlayers()
getOnlinePlayers in interface org.bukkit.Serverpublic Collection<GlowPlayer> getRawOnlinePlayers()
public org.bukkit.OfflinePlayer[] getOfflinePlayers()
getOfflinePlayers in interface org.bukkit.Serverpublic CompletableFuture<org.bukkit.OfflinePlayer[]> getOfflinePlayersAsync()
public org.bukkit.entity.Player getPlayer(String name)
getPlayer in interface org.bukkit.Serverpublic org.bukkit.entity.Player getPlayer(UUID uuid)
getPlayer in interface org.bukkit.Server@Nullable public UUID getPlayerUniqueId(String playerName)
getPlayerUniqueId in interface org.bukkit.Serverpublic org.bukkit.entity.Player getPlayerExact(String name)
getPlayerExact in interface org.bukkit.Serverpublic List<org.bukkit.entity.Player> matchPlayer(String name)
matchPlayer in interface org.bukkit.Serverpublic org.bukkit.OfflinePlayer getOfflinePlayer(GlowPlayerProfile profile)
GlowOfflinePlayer instance for the given GlowPlayerProfile.profile - the player's profile.GlowOfflinePlayer instance for the given profile.@Deprecated public org.bukkit.OfflinePlayer getOfflinePlayer(String name)
getOfflinePlayer in interface org.bukkit.Serverpublic org.bukkit.OfflinePlayer getOfflinePlayer(UUID uuid)
getOfflinePlayer in interface org.bukkit.Serverpublic CompletableFuture<org.bukkit.OfflinePlayer> getOfflinePlayerAsync(String name)
GlowOfflinePlayer instance for the given name.name - the player's name to look up.GlowOfflinePlayer future for the given name.public CompletableFuture<org.bukkit.OfflinePlayer> getOfflinePlayerAsync(UUID uuid)
GlowOfflinePlayer instance for the given uuid.uuid - the player's uuid.GlowOfflinePlayer future for the given name.public void savePlayers()
savePlayers in interface org.bukkit.Serverpublic int broadcast(String message, String permission)
broadcast in interface org.bukkit.Serverpublic void broadcast(net.md_5.bungee.api.chat.BaseComponent component)
broadcast in interface org.bukkit.Serverpublic void broadcast(net.md_5.bungee.api.chat.BaseComponent... components)
broadcast in interface org.bukkit.Serverpublic int broadcastMessage(String message)
broadcastMessage in interface org.bukkit.Serverpublic void broadcastPacket(com.flowpowered.network.Message message)
message - the packet to broadcast.public Set<org.bukkit.OfflinePlayer> getWhitelistedPlayers()
getWhitelistedPlayers in interface org.bukkit.Serverpublic void reloadWhitelist()
reloadWhitelist in interface org.bukkit.Serverpublic void banIP(String address)
banIP in interface org.bukkit.Serverpublic void unbanIP(String address)
unbanIP in interface org.bukkit.Serverpublic Set<org.bukkit.OfflinePlayer> getBannedPlayers()
getBannedPlayers in interface org.bukkit.Serverpublic void sendPlayerAbilities(GlowPlayer player)
GlowPlayer their abilities regarding
flying and walking.player - The player who is being sent their abilities.public GlowWorld getWorld(String name)
getWorld in interface org.bukkit.Serverpublic List<org.bukkit.World> getWorlds()
getWorlds in interface org.bukkit.Serverpublic GlowWorld createWorld(org.bukkit.WorldCreator creator)
createWorld in interface org.bukkit.Serverpublic boolean unloadWorld(String name, boolean save)
unloadWorld in interface org.bukkit.Serverpublic boolean unloadWorld(org.bukkit.World world,
boolean save)
unloadWorld in interface org.bukkit.Serverpublic GlowMapView getMap(short id)
getMap in interface org.bukkit.Serverpublic GlowMapView createMap(org.bukkit.World world)
createMap in interface org.bukkit.Serverpublic List<org.bukkit.inventory.Recipe> getRecipesFor(org.bukkit.inventory.ItemStack result)
getRecipesFor in interface org.bukkit.Serverpublic Iterator<org.bukkit.inventory.Recipe> recipeIterator()
recipeIterator in interface org.bukkit.Serverpublic boolean addRecipe(org.bukkit.inventory.Recipe recipe)
addRecipe in interface org.bukkit.Serverpublic void clearRecipes()
clearRecipes in interface org.bukkit.Serverpublic void resetRecipes()
resetRecipes in interface org.bukkit.Serverpublic org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner,
org.bukkit.event.inventory.InventoryType type)
createInventory in interface org.bukkit.Serverpublic org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner,
org.bukkit.event.inventory.InventoryType type,
String title)
createInventory in interface org.bukkit.Serverpublic org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner,
int size)
createInventory in interface org.bukkit.Serverpublic org.bukkit.inventory.Inventory createInventory(org.bukkit.inventory.InventoryHolder owner,
int size,
String title)
createInventory in interface org.bukkit.Serverpublic org.bukkit.inventory.Merchant createMerchant(String title)
createMerchant in interface org.bukkit.Serverpublic GlowServerIcon getServerIcon()
getServerIcon in interface org.bukkit.Serverpublic org.bukkit.util.CachedServerIcon loadServerIcon(File file) throws Exception
loadServerIcon in interface org.bukkit.ServerExceptionpublic org.bukkit.util.CachedServerIcon loadServerIcon(BufferedImage image) throws Exception
loadServerIcon in interface org.bukkit.ServerExceptionpublic void sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message)
sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic Set<String> getListeningPluginChannels()
getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic org.bukkit.GameMode getDefaultGameMode()
getDefaultGameMode in interface org.bukkit.Serverpublic void setDefaultGameMode(org.bukkit.GameMode mode)
setDefaultGameMode in interface org.bukkit.Serverpublic int getSpawnRadius()
getSpawnRadius in interface org.bukkit.Serverpublic void setSpawnRadius(int value)
setSpawnRadius in interface org.bukkit.Serverpublic boolean hasWhitelist()
hasWhitelist in interface org.bukkit.Serverpublic org.bukkit.Warning.WarningState getWarningState()
getWarningState in interface org.bukkit.Serverpublic int getIdleTimeout()
getIdleTimeout in interface org.bukkit.Serverpublic void setIdleTimeout(int timeout)
setIdleTimeout in interface org.bukkit.Serverpublic org.bukkit.generator.ChunkGenerator.ChunkData createChunkData(org.bukkit.World world)
createChunkData in interface org.bukkit.Serverpublic org.bukkit.boss.BossBar createBossBar(String title, org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle style, org.bukkit.boss.BarFlag... flags)
createBossBar in interface org.bukkit.Serverpublic double[] getTPS()
getTPS in interface org.bukkit.Serverpublic int getPort()
getPort in interface org.bukkit.Serverpublic void setPort(int port)
This does not change the port the server will run on.
port - the port numberpublic String getIp()
getIp in interface org.bukkit.Serverpublic void setIp(String ip)
This does not change the IP address the server will run on.
ip - the IP addresspublic ServerConfig getConfig()
public static WorldConfig getWorldConfig()
public String getServerName()
getServerName in interface org.bukkit.Serverpublic String getServerId()
getServerId in interface org.bukkit.Serverpublic int getMaxPlayers()
getMaxPlayers in interface org.bukkit.Serverpublic String getUpdateFolder()
getUpdateFolder in interface org.bukkit.Serverpublic File getUpdateFolderFile()
getUpdateFolderFile in interface org.bukkit.Serverpublic boolean getOnlineMode()
getOnlineMode in interface org.bukkit.Serverpublic boolean getAllowNether()
getAllowNether in interface org.bukkit.Serverpublic boolean getAllowEnd()
getAllowEnd in interface org.bukkit.Serverpublic int getViewDistance()
getViewDistance in interface org.bukkit.Serverpublic String getMotd()
getMotd in interface org.bukkit.Serverpublic File getWorldContainer()
getWorldContainer in interface org.bukkit.Serverpublic String getWorldType()
getWorldType in interface org.bukkit.Serverpublic boolean getGenerateStructures()
getGenerateStructures in interface org.bukkit.Serverpublic long getConnectionThrottle()
getConnectionThrottle in interface org.bukkit.Serverpublic boolean getMonstersSpawnEnabled()
public boolean getAnimalsSpawnEnabled()
public int getTicksPerAnimalSpawns()
getTicksPerAnimalSpawns in interface org.bukkit.Serverpublic int getTicksPerMonsterSpawns()
getTicksPerMonsterSpawns in interface org.bukkit.Serverpublic boolean isHardcore()
isHardcore in interface org.bukkit.Serverpublic boolean isPvpEnabled()
public int getMonsterSpawnLimit()
getMonsterSpawnLimit in interface org.bukkit.Serverpublic int getAnimalSpawnLimit()
getAnimalSpawnLimit in interface org.bukkit.Serverpublic int getWaterAnimalSpawnLimit()
getWaterAnimalSpawnLimit in interface org.bukkit.Serverpublic int getAmbientSpawnLimit()
getAmbientSpawnLimit in interface org.bukkit.Serverpublic String getShutdownMessage()
getShutdownMessage in interface org.bukkit.Serverpublic boolean getAllowFlight()
getAllowFlight in interface org.bukkit.Serverpublic int getMaxBuildHeight()
public boolean getClassicWater()
public String getConsolePrompt()
public String getConsoleDateFormat()
public String getConsoleLogDateFormat()
public String getServerType()
StatusRequestHandler.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.
public boolean getAllowClientMods()
This rule is not actually enforced, and is simply exposed to clients as a warning.
public int getPlayerSampleCount()
public boolean isGenerationDisabled()
public boolean doesUseGraphicsCompute()
public boolean shouldPreventProxy()
public WorldStorageProviderFactory getStorageProviderFactory()
public void setStorageProvider(WorldStorageProviderFactory storageProviderFactory)
IllegalStateException.storageProviderFactory - The world storage provider that is attempting to be
set.public GameServer getNetworkServer()
public FishingRewardManager getFishingRewardManager()
Copyright © 2021. All rights reserved.