|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.Bukkit
public final class Bukkit
Represents the Bukkit core, for version and Server singleton handling
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Server getServer()
Server
singleton
public 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()
public static 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()
public static Player getPlayer(String name)
Server.getPlayer(String name)
public static List<Player> matchPlayer(String name)
Server.matchPlayer(String name)
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)
Server.unloadWorld(String name, boolean save)
public static boolean unloadWorld(World world, boolean save)
Server.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)
Server.dispatchCommand(CommandSender sender, String commandLine)
public static void configureDbConfig(com.avaje.ebean.config.ServerConfig config)
Server.configureDbConfig(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()
public static int broadcast(String message, String permission)
Server.broadcast(String message, String permission)
public static OfflinePlayer getOfflinePlayer(String name)
Server.getOfflinePlayer(String name)
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 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)
Server.createInventory(InventoryHolder owner, InventoryType type)
public static Inventory createInventory(InventoryHolder owner, int size)
Server.createInventory(InventoryHolder owner, int size)
public static Inventory createInventory(InventoryHolder owner, int size, String title)
Server.createInventory(InventoryHolder owner, int size, String title)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |