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 Details

    • directoryPlayers

      public File directoryPlayers
    • directoryIslands

      public File directoryIslands
  • Constructor Details

    • uSkyBlock

      public uSkyBlock()
  • Method Details

    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getConfig

      public org.bukkit.configuration.file.FileConfiguration getConfig()
      Specified by:
      getConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      getConfig in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.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 interface dk.lockfuglsang.minecraft.command.CommandManager.RequirementChecker
    • getInstance

      public static uSkyBlock getInstance()
    • registerEvents

      public void registerEvents()
    • getSafeHomeLocation

      public org.bukkit.Location getSafeHomeLocation(PlayerInfo p)
    • getSafeWarpLocation

      public org.bukkit.Location getSafeWarpLocation(PlayerInfo p)
    • deleteEmptyIsland

      public boolean deleteEmptyIsland(String islandName, Runnable runner)
    • deletePlayerIsland

      public void deletePlayerIsland(String player, Runnable runner)
    • 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 interface org.bukkit.plugin.Plugin
      Overrides:
      getDefaultWorldGenerator in class org.bukkit.plugin.java.JavaPlugin
    • getPlayerInfo

      public PlayerInfo getPlayerInfo(org.bukkit.entity.Player player)
      Specified by:
      getPlayerInfo in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getPlayerInfo

      public PlayerInfo getPlayerInfo(UUID uuid)
    • getPlayerInfo

      public PlayerInfo getPlayerInfo(String playerName)
    • setBiome

      public boolean setBiome(org.bukkit.Location loc, String bName)
    • getBiome

      public org.bukkit.block.Biome getBiome(String bName)
    • createIsland

      public void createIsland(org.bukkit.entity.Player player, String cSchem)
    • setNewPlayerIsland

      public IslandInfo setNewPlayerIsland(PlayerInfo playerInfo, org.bukkit.Location loc)
    • getIslandInfo

      public IslandInfo getIslandInfo(org.bukkit.entity.Player player)
      Specified by:
      getIslandInfo in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getIslandInfo

      public IslandInfo getIslandInfo(org.bukkit.Location location)
      Specified by:
      getIslandInfo in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • isGTE

      public boolean isGTE(String versionNumber)
      Specified by:
      isGTE in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getIslandInfo

      public IslandInfo getIslandInfo(String location)
    • getIslandInfo

      public IslandInfo getIslandInfo(PlayerInfo pi)
    • getMenu

      public SkyBlockMenu getMenu()
    • getConfigMenu

      public ConfigMenu getConfigMenu()
    • getChallengeLogic

      public ChallengeLogic getChallengeLogic()
    • getLevelLogic

      public LevelLogic getLevelLogic()
    • getPerkLogic

      public PerkLogic getPerkLogic()
    • getIslandLocatorLogic

      public IslandLocatorLogic getIslandLocatorLogic()
    • reloadConfig

      public void reloadConfig()
      Specified by:
      reloadConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      reloadConfig in class org.bukkit.plugin.java.JavaPlugin
    • registerEventsAndCommands

      public void registerEventsAndCommands()
    • getIslandLogic

      public IslandLogic getIslandLogic()
    • getOrphanLogic

      public OrphanLogic getOrphanLogic()
    • getBlockLimitLogic

      public BlockLimitLogic getBlockLimitLogic()
    • execCommand

      public void execCommand(org.bukkit.entity.Player player, String command, boolean onlyInSky)
      Parameters:
      player - The player executing the command
      command - The command to execute
      onlyInSky - Whether the command is restricted to a sky-associated world.
    • getImporter

      public USBImporterExecutor getImporter()
    • playerIsInSpawn

      public boolean playerIsInSpawn(org.bukkit.entity.Player player)
    • notifyPlayer

      public void notifyPlayer(org.bukkit.entity.Player player, String msg)
      Notify the player, but max. every X seconds.
    • getAPI

      public static us.talabrek.ultimateskyblock.api.uSkyBlockAPI getAPI()
    • getTopTen

      public List<us.talabrek.ultimateskyblock.api.IslandLevel> getTopTen()
      Specified by:
      getTopTen in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getRanks

      public List<us.talabrek.ultimateskyblock.api.IslandLevel> getRanks(int offset, int length)
      Specified by:
      getRanks in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getIslandLevel

      public double getIslandLevel(org.bukkit.entity.Player player)
      Specified by:
      getIslandLevel in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getIslandRank

      public us.talabrek.ultimateskyblock.api.IslandRank getIslandRank(org.bukkit.entity.Player player)
      Specified by:
      getIslandRank in interface us.talabrek.ultimateskyblock.api.uSkyBlockAPI
    • getIslandRank

      public us.talabrek.ultimateskyblock.api.IslandRank getIslandRank(org.bukkit.Location location)
      Specified by:
      getIslandRank in interface us.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

      public String getVersionInfo(boolean checkEnabled)
    • getPlayerDB

      public PlayerDB 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

      public ConfirmHandler getConfirmHandler()
    • getCooldownHandler

      public CooldownHandler getCooldownHandler()
    • getEventLogic

      public EventLogic getEventLogic()
    • getPlayerLogic

      public PlayerLogic getPlayerLogic()
    • getTeleportLogic

      public TeleportLogic getTeleportLogic()
    • getLimitLogic

      public LimitLogic getLimitLogic()
    • getIslandGenerator

      public IslandGenerator getIslandGenerator()
    • getHookManager

      public HookManager getHookManager()
    • getUpdateChecker

      public SkyUpdateChecker getUpdateChecker()
    • getWorldManager

      public WorldManager 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 interface org.bukkit.command.CommandExecutor
      Overrides:
      onCommand in class org.bukkit.plugin.java.JavaPlugin
    • async

      public org.bukkit.scheduler.BukkitTask async(Runnable runnable)
    • async

      public org.bukkit.scheduler.BukkitTask async(Runnable runnable, long delayMs)
    • async

      public org.bukkit.scheduler.BukkitTask async(Runnable runnable, long delay, long every)
    • sync

      public org.bukkit.scheduler.BukkitTask sync(Runnable runnable)
    • sync

      public org.bukkit.scheduler.BukkitTask sync(Runnable runnable, long delayMs)
    • sync

      public org.bukkit.scheduler.BukkitTask sync(Runnable runnable, long delay, long every)
    • execCommands

      public void execCommands(org.bukkit.entity.Player player, List<String> cmdList)