public final class Bukkit extends Object
public static Server getServer()
Server
singletonpublic static void setServer(Server server)
Server
singleton.
This cannot be done if the Server is already set.
server
- Server instancepublic static String getName()
Server.getName()
public static String getVersion()
Server.getVersion()
public static String getBukkitVersion()
Server.getBukkitVersion()
@Deprecated public static Player[] _INVALID_getOnlinePlayers()
Server._INVALID_getOnlinePlayers()
public static Collection<? extends Player> getOnlinePlayers()
Server.getOnlinePlayers()
public static int getMaxPlayers()
Server.getMaxPlayers()
public static int getPort()
Server.getPort()
public static int getViewDistance()
Server.getViewDistance()
public static String getIp()
Server.getIp()
public static String getServerName()
Server.getServerName()
public static String getServerId()
Server.getServerId()
public static String getWorldType()
Server.getWorldType()
public static boolean getGenerateStructures()
Server.getGenerateStructures()
public static boolean getAllowNether()
Server.getAllowNether()
public static boolean hasWhitelist()
Server.hasWhitelist()
public static int broadcastMessage(String message)
Server.broadcastMessage(String message)
public static String getUpdateFolder()
Server.getUpdateFolder()
@Deprecated public static Player getPlayer(String name)
Server.getPlayer(String name)
@Deprecated public static List<Player> matchPlayer(String name)
Server.matchPlayer(String name)
public static Player getPlayer(UUID id)
Server.getPlayer(java.util.UUID)
public static PluginManager getPluginManager()
Server.getPluginManager()
public static BukkitScheduler getScheduler()
Server.getScheduler()
public static ServicesManager getServicesManager()
Server.getServicesManager()
public static List<World> getWorlds()
Server.getWorlds()
public static World createWorld(WorldCreator options)
Server.createWorld(WorldCreator options)
public static boolean unloadWorld(String name, boolean save)
public static boolean unloadWorld(World world, boolean save)
public static World getWorld(String name)
Server.getWorld(String name)
public static World getWorld(UUID uid)
Server.getWorld(UUID uid)
@Deprecated public static MapView getMap(short id)
Server.getMap(short id)
public static MapView createMap(World world)
Server.createMap(World world)
public static void reload()
Server.reload()
public static Logger getLogger()
Server.getLogger()
public static PluginCommand getPluginCommand(String name)
Server.getPluginCommand(String name)
public static void savePlayers()
Server.savePlayers()
public static boolean dispatchCommand(CommandSender sender, String commandLine) throws CommandException
public static void configureDbConfig(com.avaje.ebean.config.ServerConfig config)
public static boolean addRecipe(Recipe recipe)
Server.addRecipe(Recipe recipe)
public static List<Recipe> getRecipesFor(ItemStack result)
Server.getRecipesFor(ItemStack result)
public static Iterator<Recipe> recipeIterator()
Server.recipeIterator()
public static void clearRecipes()
Server.clearRecipes()
public static void resetRecipes()
Server.resetRecipes()
public static Map<String,String[]> getCommandAliases()
Server.getCommandAliases()
public static int getSpawnRadius()
Server.getSpawnRadius()
public static void setSpawnRadius(int value)
Server.setSpawnRadius(int value)
public static boolean getOnlineMode()
Server.getOnlineMode()
public static boolean getAllowFlight()
Server.getAllowFlight()
public static boolean isHardcore()
Server.isHardcore()
public static void shutdown()
Server.shutdown()
@Deprecated public static OfflinePlayer getOfflinePlayer(String name)
Server.getOfflinePlayer(String name)
public static OfflinePlayer getOfflinePlayer(UUID id)
Server.getOfflinePlayer(java.util.UUID)
@Deprecated public static Player getPlayerExact(String name)
Server.getPlayerExact(String name)
public static Set<String> getIPBans()
Server.getIPBans()
public static void banIP(String address)
Server.banIP(String address)
public static void unbanIP(String address)
Server.unbanIP(String address)
public static Set<OfflinePlayer> getBannedPlayers()
Server.getBannedPlayers()
public static BanList getBanList(BanList.Type type)
Server.getBanList(BanList.Type)
public static void setWhitelist(boolean value)
Server.setWhitelist(boolean value)
public static Set<OfflinePlayer> getWhitelistedPlayers()
Server.getWhitelistedPlayers()
public static void reloadWhitelist()
Server.reloadWhitelist()
public static ConsoleCommandSender getConsoleSender()
Server.getConsoleSender()
public static Set<OfflinePlayer> getOperators()
Server.getOperators()
public static File getWorldContainer()
Server.getWorldContainer()
public static Messenger getMessenger()
Server.getMessenger()
public static boolean getAllowEnd()
Server.getAllowEnd()
public static File getUpdateFolderFile()
Server.getUpdateFolderFile()
public static long getConnectionThrottle()
Server.getConnectionThrottle()
public static int getTicksPerAnimalSpawns()
Server.getTicksPerAnimalSpawns()
public static int getTicksPerMonsterSpawns()
Server.getTicksPerMonsterSpawns()
public static boolean useExactLoginLocation()
Server.useExactLoginLocation()
public static GameMode getDefaultGameMode()
Server.getDefaultGameMode()
public static void setDefaultGameMode(GameMode mode)
Server.setDefaultGameMode(GameMode mode)
public static OfflinePlayer[] getOfflinePlayers()
Server.getOfflinePlayers()
public static Inventory createInventory(InventoryHolder owner, InventoryType type)
public static Inventory createInventory(InventoryHolder owner, InventoryType type, String title)
public static Inventory createInventory(InventoryHolder owner, int size) throws IllegalArgumentException
public static Inventory createInventory(InventoryHolder owner, int size, String title) throws IllegalArgumentException
public static HelpMap getHelpMap()
Server.getHelpMap()
public static int getMonsterSpawnLimit()
Server.getMonsterSpawnLimit()
public static int getAnimalSpawnLimit()
Server.getAnimalSpawnLimit()
public static int getWaterAnimalSpawnLimit()
Server.getWaterAnimalSpawnLimit()
public static int getAmbientSpawnLimit()
Server.getAmbientSpawnLimit()
public static boolean isPrimaryThread()
Server.isPrimaryThread()
public static String getMotd()
Server.getMotd()
public static String getShutdownMessage()
Server.getShutdownMessage()
public static Warning.WarningState getWarningState()
Server.getWarningState()
public static ItemFactory getItemFactory()
Server.getItemFactory()
public static ScoreboardManager getScoreboardManager()
Server.getScoreboardManager()
public static CachedServerIcon getServerIcon()
Server.getServerIcon()
public static CachedServerIcon loadServerIcon(File file) throws IllegalArgumentException, Exception
IllegalArgumentException
Exception
Server.loadServerIcon(File)
public static CachedServerIcon loadServerIcon(BufferedImage image) throws IllegalArgumentException, Exception
IllegalArgumentException
Exception
Server.loadServerIcon(BufferedImage)
public static void setIdleTimeout(int threshold)
Server.setIdleTimeout(int)
public static int getIdleTimeout()
Server.getIdleTimeout()
@Deprecated public static UnsafeValues getUnsafe()
Server.getUnsafe()
Copyright © 2015. All rights reserved.