org.bukkit
Class Bukkit
java.lang.Object
org.bukkit.Bukkit
public final class Bukkit
- extends Object
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 |
getServer
public static Server getServer()
- Gets the current
Server
singleton
- Returns:
- Server instance being ran
setServer
public static void setServer(Server server)
- Attempts to set the
Server
singleton.
This cannot be done if the Server is already set.
- Parameters:
server
- Server instance
getName
public static String getName()
getVersion
public static String getVersion()
getBukkitVersion
public static String getBukkitVersion()
getOnlinePlayers
public static Player[] getOnlinePlayers()
getMaxPlayers
public static int getMaxPlayers()
getPort
public static int getPort()
getViewDistance
public static int getViewDistance()
getIp
public static String getIp()
getServerName
public static String getServerName()
getServerId
public static String getServerId()
getWorldType
public static String getWorldType()
getGenerateStructures
public static boolean getGenerateStructures()
getAllowNether
public static boolean getAllowNether()
hasWhitelist
public static boolean hasWhitelist()
broadcastMessage
public static int broadcastMessage(String message)
getUpdateFolder
public static String getUpdateFolder()
getPlayer
public static Player getPlayer(String name)
matchPlayer
public static List<Player> matchPlayer(String name)
getPluginManager
public static PluginManager getPluginManager()
getScheduler
public static BukkitScheduler getScheduler()
getServicesManager
public static ServicesManager getServicesManager()
getWorlds
public static List<World> getWorlds()
createWorld
public static World createWorld(WorldCreator options)
unloadWorld
public static boolean unloadWorld(String name,
boolean save)
unloadWorld
public static boolean unloadWorld(World world,
boolean save)
getWorld
public static World getWorld(String name)
getWorld
public static World getWorld(UUID uid)
getMap
public static MapView getMap(short id)
createMap
public static MapView createMap(World world)
reload
public static void reload()
getLogger
public static Logger getLogger()
getPluginCommand
public static PluginCommand getPluginCommand(String name)
savePlayers
public static void savePlayers()
dispatchCommand
public static boolean dispatchCommand(CommandSender sender,
String commandLine)
configureDbConfig
public static void configureDbConfig(com.avaje.ebean.config.ServerConfig config)
addRecipe
public static boolean addRecipe(Recipe recipe)
getRecipesFor
public static List<Recipe> getRecipesFor(ItemStack result)
recipeIterator
public static Iterator<Recipe> recipeIterator()
clearRecipes
public static void clearRecipes()
resetRecipes
public static void resetRecipes()
getCommandAliases
public static Map<String,String[]> getCommandAliases()
getSpawnRadius
public static int getSpawnRadius()
setSpawnRadius
public static void setSpawnRadius(int value)
getOnlineMode
public static boolean getOnlineMode()
getAllowFlight
public static boolean getAllowFlight()
isHardcore
public static boolean isHardcore()
shutdown
public static void shutdown()
broadcast
public static int broadcast(String message,
String permission)
getOfflinePlayer
public static OfflinePlayer getOfflinePlayer(String name)
getPlayerExact
public static Player getPlayerExact(String name)
getIPBans
public static Set<String> getIPBans()
banIP
public static void banIP(String address)
unbanIP
public static void unbanIP(String address)
getBannedPlayers
public static Set<OfflinePlayer> getBannedPlayers()
setWhitelist
public static void setWhitelist(boolean value)
getWhitelistedPlayers
public static Set<OfflinePlayer> getWhitelistedPlayers()
reloadWhitelist
public static void reloadWhitelist()
getConsoleSender
public static ConsoleCommandSender getConsoleSender()
getOperators
public static Set<OfflinePlayer> getOperators()
getWorldContainer
public static File getWorldContainer()
getMessenger
public static Messenger getMessenger()
getAllowEnd
public static boolean getAllowEnd()
getUpdateFolderFile
public static File getUpdateFolderFile()
getConnectionThrottle
public static long getConnectionThrottle()
getTicksPerAnimalSpawns
public static int getTicksPerAnimalSpawns()
getTicksPerMonsterSpawns
public static int getTicksPerMonsterSpawns()
useExactLoginLocation
public static boolean useExactLoginLocation()
getDefaultGameMode
public static GameMode getDefaultGameMode()
setDefaultGameMode
public static void setDefaultGameMode(GameMode mode)
getOfflinePlayers
public static OfflinePlayer[] getOfflinePlayers()
createInventory
public static Inventory createInventory(InventoryHolder owner,
InventoryType type)
createInventory
public static Inventory createInventory(InventoryHolder owner,
int size)
createInventory
public static Inventory createInventory(InventoryHolder owner,
int size,
String title)
getHelpMap
public static HelpMap getHelpMap()
getMonsterSpawnLimit
public static int getMonsterSpawnLimit()
getAnimalSpawnLimit
public static int getAnimalSpawnLimit()
getWaterAnimalSpawnLimit
public static int getWaterAnimalSpawnLimit()
getAmbientSpawnLimit
public static int getAmbientSpawnLimit()
isPrimaryThread
public static boolean isPrimaryThread()
getMotd
public static String getMotd()
getShutdownMessage
public static String getShutdownMessage()
getWarningState
public static Warning.WarningState getWarningState()
getItemFactory
public static ItemFactory getItemFactory()
Copyright © 2013. All Rights Reserved.