public interface uSkyBlockAPI
extends org.bukkit.plugin.Plugin
uSkyBlockAPI api = Bukkit.getPluginManager().getPlugin("uSkyBlock");
if (api != null && api.isEnabled()) {
// Access the api here...
} else {
// Complain here
}
Modifier and Type | Method and Description |
---|---|
IslandInfo |
getIslandInfo(org.bukkit.Location location)
Returns the island-information for the supplied location, or
null if none exist. |
IslandInfo |
getIslandInfo(org.bukkit.entity.Player player)
Returns the island-information for the player, or
null if none exist. |
double |
getIslandLevel(org.bukkit.entity.Player player)
Returns the currently registered score for the given player.
|
IslandRank |
getIslandRank(org.bukkit.Location location)
Returns the island (or
null ) of the location supplied. |
IslandRank |
getIslandRank(org.bukkit.entity.Player player)
Returns the current rank of the island of the supplied player.
|
List<IslandLevel> |
getRanks(int offset,
int length)
Returns the rank-list.
|
List<IslandLevel> |
getTopTen()
Convenience method for #getRanks(0, 10).
|
boolean |
isGTE(String versionNumber)
Convenience method to test the API version.
|
getConfig, getDatabase, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getName, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable
double getIslandLevel(org.bukkit.entity.Player player)
player
- The player to check.IslandRank getIslandRank(org.bukkit.entity.Player player)
player
- The player to query fornull
if none exist.List<IslandLevel> getRanks(int offset, int length)
offset
- A 0-based offset.length
- The max number of records to return.List<IslandLevel> getTopTen()
IslandRank getIslandRank(org.bukkit.Location location)
null
) of the location supplied.location
- A location in the skyworld.null
of the given location.IslandInfo getIslandInfo(org.bukkit.entity.Player player)
null
if none exist.player
- The player to query island-info for.null
if none exist.boolean isGTE(String versionNumber)
uSkyBlockAPI api = Bukkit.getPluginManager().getPlugin("uSkyBlock");
if (api != null && api.isEnabled() && api.isGTE("2.6.2")) {
// Access the api here...
} else {
// Complain here
}
versionNumber
- The version number to test against.IslandInfo getIslandInfo(org.bukkit.Location location)
null
if none exist.location
- The location to test for the existence of an island.null
if none exist.Copyright © 2016. All rights reserved.