Package us.talabrek.ultimateskyblock
Class uSkyBlock
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
us.talabrek.ultimateskyblock.uSkyBlock
- All Implemented Interfaces:
dk.lockfuglsang.minecraft.command.CommandManager.RequirementChecker
,org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
,us.talabrek.ultimateskyblock.api.uSkyBlockAPI
public class uSkyBlock
extends org.bukkit.plugin.java.JavaPlugin
implements us.talabrek.ultimateskyblock.api.uSkyBlockAPI, dk.lockfuglsang.minecraft.command.CommandManager.RequirementChecker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.scheduler.BukkitTask
org.bukkit.scheduler.BukkitTask
org.bukkit.scheduler.BukkitTask
void
calculateScoreAsync
(org.bukkit.entity.Player player, String islandName, us.talabrek.ultimateskyblock.api.async.Callback<us.talabrek.ultimateskyblock.api.model.IslandScore> callback) void
clearPlayerInventory
(org.bukkit.entity.Player player) void
createIsland
(org.bukkit.entity.Player player, String cSchem) boolean
deleteEmptyIsland
(String islandName, Runnable runner) void
deletePlayerIsland
(String player, Runnable runner) boolean
devSetPlayerIsland
(org.bukkit.entity.Player sender, org.bukkit.Location l, String player) void
execCommand
(org.bukkit.entity.Player player, String command, boolean onlyInSky) void
execCommands
(org.bukkit.entity.Player player, List<String> cmdList) void
fireAsyncEvent
(org.bukkit.event.Event event) void
fireChangeEvent
(org.bukkit.command.CommandSender sender, us.talabrek.ultimateskyblock.api.event.uSkyBlockEvent.Cause cause) static us.talabrek.ultimateskyblock.api.uSkyBlockAPI
getAPI()
org.bukkit.block.Biome
org.bukkit.configuration.file.FileConfiguration
org.bukkit.generator.ChunkGenerator
getDefaultWorldGenerator
(@NotNull String worldName, @Nullable String id) static uSkyBlock
getIslandInfo
(String location) getIslandInfo
(org.bukkit.entity.Player player) getIslandInfo
(org.bukkit.Location location) double
getIslandLevel
(org.bukkit.entity.Player player) us.talabrek.ultimateskyblock.api.IslandRank
getIslandRank
(org.bukkit.entity.Player player) us.talabrek.ultimateskyblock.api.IslandRank
getIslandRank
(org.bukkit.Location location) getMenu()
getPlayerInfo
(String playerName) getPlayerInfo
(UUID uuid) getPlayerInfo
(org.bukkit.entity.Player player) List<us.talabrek.ultimateskyblock.api.IslandLevel>
getRanks
(int offset, int length) org.bukkit.Location
org.bukkit.Location
List<us.talabrek.ultimateskyblock.api.IslandLevel>
getVersionInfo
(boolean checkEnabled) boolean
hasIsland
(org.bukkit.entity.Player player) boolean
boolean
islandAtLocation
(org.bukkit.Location loc) boolean
islandInSpawn
(org.bukkit.Location loc) boolean
boolean
isRequirementsMet
(org.bukkit.command.CommandSender sender, dk.lockfuglsang.minecraft.command.Command command, String... args) boolean
locationIsOnIsland
(org.bukkit.entity.Player player, org.bukkit.Location loc) boolean
locationIsOnNetherIsland
(org.bukkit.entity.Player player, org.bukkit.Location loc) void
notifyPlayer
(org.bukkit.entity.Player player, String msg) Notify the player, but max.boolean
onCommand
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) void
void
onEnable()
boolean
playerIsInSpawn
(org.bukkit.entity.Player player) boolean
playerIsOnIsland
(org.bukkit.entity.Player player) boolean
playerIsOnOwnIsland
(org.bukkit.entity.Player player) void
void
void
boolean
restartPlayerIsland
(org.bukkit.entity.Player player, org.bukkit.Location next, String cSchem) boolean
void
setMaintenanceMode
(boolean maintenanceMode) CAUTION! If anyone calls this with true, they MUST ensure it is later called with false, or the plugin will effectively be in a locked state.setNewPlayerIsland
(PlayerInfo playerInfo, org.bukkit.Location loc) org.bukkit.scheduler.BukkitTask
org.bukkit.scheduler.BukkitTask
org.bukkit.scheduler.BukkitTask
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getDataFolder, getDefaultBiomeProvider, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onLoad, onTabComplete, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from interface org.bukkit.plugin.Plugin
getDataFolder, getDefaultBiomeProvider, getDescription, getLogger, getName, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onLoad, saveConfig, saveDefaultConfig, saveResource, setNaggable
Methods inherited from interface org.bukkit.command.TabCompleter
onTabComplete
-
Field Details
-
directoryPlayers
-
directoryIslands
-
-
Constructor Details
-
uSkyBlock
public uSkyBlock()
-
-
Method Details
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
getConfig
public org.bukkit.configuration.file.FileConfiguration getConfig()- Specified by:
getConfig
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
getConfig
in classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
isRequirementsMet
public boolean isRequirementsMet(org.bukkit.command.CommandSender sender, dk.lockfuglsang.minecraft.command.Command command, String... args) - Specified by:
isRequirementsMet
in interfacedk.lockfuglsang.minecraft.command.CommandManager.RequirementChecker
-
getInstance
-
registerEvents
public void registerEvents() -
getSafeHomeLocation
-
getSafeWarpLocation
-
deleteEmptyIsland
-
deletePlayerIsland
-
restartPlayerIsland
public boolean restartPlayerIsland(org.bukkit.entity.Player player, org.bukkit.Location next, String cSchem) -
clearPlayerInventory
public void clearPlayerInventory(org.bukkit.entity.Player player) -
devSetPlayerIsland
public boolean devSetPlayerIsland(org.bukkit.entity.Player sender, org.bukkit.Location l, String player) -
playerIsOnIsland
public boolean playerIsOnIsland(org.bukkit.entity.Player player) -
playerIsOnOwnIsland
public boolean playerIsOnOwnIsland(org.bukkit.entity.Player player) -
locationIsOnNetherIsland
public boolean locationIsOnNetherIsland(org.bukkit.entity.Player player, org.bukkit.Location loc) -
locationIsOnIsland
public boolean locationIsOnIsland(org.bukkit.entity.Player player, org.bukkit.Location loc) -
hasIsland
public boolean hasIsland(org.bukkit.entity.Player player) -
islandAtLocation
public boolean islandAtLocation(org.bukkit.Location loc) -
islandInSpawn
public boolean islandInSpawn(org.bukkit.Location loc) -
getDefaultWorldGenerator
public org.bukkit.generator.ChunkGenerator getDefaultWorldGenerator(@NotNull @NotNull String worldName, @Nullable @Nullable String id) - Specified by:
getDefaultWorldGenerator
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
getDefaultWorldGenerator
in classorg.bukkit.plugin.java.JavaPlugin
-
getPlayerInfo
- Specified by:
getPlayerInfo
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getPlayerInfo
-
getPlayerInfo
-
setBiome
-
getBiome
-
createIsland
-
setNewPlayerIsland
-
getIslandInfo
- Specified by:
getIslandInfo
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getIslandInfo
- Specified by:
getIslandInfo
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
isGTE
- Specified by:
isGTE
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getIslandInfo
-
getIslandInfo
-
getMenu
-
getConfigMenu
-
getChallengeLogic
-
getLevelLogic
-
getPerkLogic
-
getIslandLocatorLogic
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfig
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
reloadConfig
in classorg.bukkit.plugin.java.JavaPlugin
-
registerEventsAndCommands
public void registerEventsAndCommands() -
getIslandLogic
-
getOrphanLogic
-
getBlockLimitLogic
-
execCommand
- Parameters:
player
- The player executing the commandcommand
- The command to executeonlyInSky
- Whether the command is restricted to a sky-associated world.
-
getImporter
-
playerIsInSpawn
public boolean playerIsInSpawn(org.bukkit.entity.Player player) -
notifyPlayer
Notify the player, but max. every X seconds. -
getAPI
public static us.talabrek.ultimateskyblock.api.uSkyBlockAPI getAPI() -
getTopTen
- Specified by:
getTopTen
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getRanks
- Specified by:
getRanks
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getIslandLevel
public double getIslandLevel(org.bukkit.entity.Player player) - Specified by:
getIslandLevel
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getIslandRank
public us.talabrek.ultimateskyblock.api.IslandRank getIslandRank(org.bukkit.entity.Player player) - Specified by:
getIslandRank
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
getIslandRank
public us.talabrek.ultimateskyblock.api.IslandRank getIslandRank(org.bukkit.Location location) - Specified by:
getIslandRank
in interfaceus.talabrek.ultimateskyblock.api.uSkyBlockAPI
-
fireChangeEvent
public void fireChangeEvent(org.bukkit.command.CommandSender sender, us.talabrek.ultimateskyblock.api.event.uSkyBlockEvent.Cause cause) -
fireAsyncEvent
public void fireAsyncEvent(org.bukkit.event.Event event) -
getVersionInfo
-
getPlayerDB
-
calculateScoreAsync
public void calculateScoreAsync(org.bukkit.entity.Player player, String islandName, us.talabrek.ultimateskyblock.api.async.Callback<us.talabrek.ultimateskyblock.api.model.IslandScore> callback) -
getConfirmHandler
-
getCooldownHandler
-
getEventLogic
-
getPlayerLogic
-
getTeleportLogic
-
getLimitLogic
-
getIslandGenerator
-
getHookManager
-
getUpdateChecker
-
getWorldManager
-
isMaintenanceMode
public boolean isMaintenanceMode() -
setMaintenanceMode
public void setMaintenanceMode(boolean maintenanceMode) CAUTION! If anyone calls this with true, they MUST ensure it is later called with false, or the plugin will effectively be in a locked state.- Parameters:
maintenanceMode
- whether or not to enable maintenance-mode.
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Overrides:
onCommand
in classorg.bukkit.plugin.java.JavaPlugin
-
async
-
async
-
async
-
sync
-
sync
-
sync
-
execCommands
-