Class BukkitHuskHomes

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
net.william278.huskhomes.BukkitHuskHomes
All Implemented Interfaces:
net.william278.huskhomes.HuskHomes, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class BukkitHuskHomes extends org.bukkit.plugin.java.JavaPlugin implements net.william278.huskhomes.HuskHomes
  • Field Summary

    Fields inherited from interface net.william278.huskhomes.HuskHomes

    SPIGOT_RESOURCE_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    BukkitHuskHomes​(@NotNull org.bukkit.plugin.java.JavaPluginLoader loader, @NotNull org.bukkit.plugin.PluginDescriptionFile description, @NotNull File dataFolder, @NotNull File file)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fetchServer​(@NotNull net.william278.huskhomes.player.OnlineUser requester)
     
    net.kyori.adventure.platform.bukkit.BukkitAudiences
    Returns the adventure Bukkit audiences
    @NotNull net.william278.huskhomes.Cache
     
    @NotNull List<net.william278.huskhomes.command.CommandBase>
     
    @NotNull net.william278.huskhomes.database.Database
     
    @NotNull net.william278.huskhomes.event.EventDispatcher
     
     
    Optional<net.william278.huskhomes.config.CachedSpawn>
     
    @NotNull net.william278.huskhomes.config.Locales
     
    @NotNull net.william278.huskhomes.util.Logger
     
    List<net.william278.huskhomes.migrator.Migrator>
     
    @NotNull net.william278.huskhomes.messenger.NetworkMessenger
     
    @NotNull List<net.william278.huskhomes.player.OnlineUser>
     
    @NotNull Set<net.william278.huskhomes.hook.PluginHook>
     
    @NotNull net.william278.huskhomes.position.Server
     
    @NotNull net.william278.desertwell.Version
     
    @NotNull net.william278.huskhomes.random.RandomTeleportEngine
     
    @NotNull net.william278.huskhomes.request.RequestManager
     
    @NotNull net.william278.huskhomes.position.SavedPositionManager
     
    @NotNull net.william278.huskhomes.config.Settings
     
    @NotNull List<net.william278.huskhomes.position.World>
     
    boolean
    isBlockUnsafe​(@NotNull String blockId)
     
    void
     
    void
     
    void
     
    void
    registerMetrics​(int metricsId)
     
    boolean
     
    CompletableFuture<Optional<net.william278.huskhomes.position.Location>>
    resolveSafeGroundLocation​(@NotNull net.william278.huskhomes.position.Location location)
     
    void
    setRandomTeleportEngine​(@NotNull net.william278.huskhomes.random.RandomTeleportEngine randomTeleportEngine)
     
    void
    setServerSpawn​(@NotNull net.william278.huskhomes.position.Location location)
     

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.william278.huskhomes.HuskHomes

    findOnlinePlayer, findPlayer, getDataFolder, getEconomyHook, getHook, getLatestVersionIfOutdated, getMapHook, getResource, getSpawn, performEconomyTransaction, validateEconomyCheck
  • Constructor Details

    • BukkitHuskHomes

      public BukkitHuskHomes()
    • BukkitHuskHomes

      protected BukkitHuskHomes(@NotNull @NotNull org.bukkit.plugin.java.JavaPluginLoader loader, @NotNull @NotNull org.bukkit.plugin.PluginDescriptionFile description, @NotNull @NotNull File dataFolder, @NotNull @NotNull File file)
  • Method Details

    • getInstance

      public static BukkitHuskHomes getInstance()
    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad 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
    • onDisable

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

      public net.kyori.adventure.platform.bukkit.BukkitAudiences getAudiences()
      Returns the adventure Bukkit audiences
      Returns:
      The adventure Bukkit audiences
    • getLoggingAdapter

      @NotNull public @NotNull net.william278.huskhomes.util.Logger getLoggingAdapter()
      Specified by:
      getLoggingAdapter in interface net.william278.huskhomes.HuskHomes
    • getOnlinePlayers

      @NotNull public @NotNull List<net.william278.huskhomes.player.OnlineUser> getOnlinePlayers()
      Specified by:
      getOnlinePlayers in interface net.william278.huskhomes.HuskHomes
    • getSettings

      @NotNull public @NotNull net.william278.huskhomes.config.Settings getSettings()
      Specified by:
      getSettings in interface net.william278.huskhomes.HuskHomes
    • getLocales

      @NotNull public @NotNull net.william278.huskhomes.config.Locales getLocales()
      Specified by:
      getLocales in interface net.william278.huskhomes.HuskHomes
    • getDatabase

      @NotNull public @NotNull net.william278.huskhomes.database.Database getDatabase()
      Specified by:
      getDatabase in interface net.william278.huskhomes.HuskHomes
    • getCache

      @NotNull public @NotNull net.william278.huskhomes.Cache getCache()
      Specified by:
      getCache in interface net.william278.huskhomes.HuskHomes
    • getRequestManager

      @NotNull public @NotNull net.william278.huskhomes.request.RequestManager getRequestManager()
      Specified by:
      getRequestManager in interface net.william278.huskhomes.HuskHomes
    • getSavedPositionManager

      @NotNull public @NotNull net.william278.huskhomes.position.SavedPositionManager getSavedPositionManager()
      Specified by:
      getSavedPositionManager in interface net.william278.huskhomes.HuskHomes
    • getNetworkMessenger

      @NotNull public @NotNull net.william278.huskhomes.messenger.NetworkMessenger getNetworkMessenger()
      Specified by:
      getNetworkMessenger in interface net.william278.huskhomes.HuskHomes
    • getRandomTeleportEngine

      @NotNull public @NotNull net.william278.huskhomes.random.RandomTeleportEngine getRandomTeleportEngine()
      Specified by:
      getRandomTeleportEngine in interface net.william278.huskhomes.HuskHomes
    • setRandomTeleportEngine

      public void setRandomTeleportEngine(@NotNull @NotNull net.william278.huskhomes.random.RandomTeleportEngine randomTeleportEngine)
      Specified by:
      setRandomTeleportEngine in interface net.william278.huskhomes.HuskHomes
    • getEventDispatcher

      @NotNull public @NotNull net.william278.huskhomes.event.EventDispatcher getEventDispatcher()
      Specified by:
      getEventDispatcher in interface net.william278.huskhomes.HuskHomes
    • getMigrators

      public List<net.william278.huskhomes.migrator.Migrator> getMigrators()
      Specified by:
      getMigrators in interface net.william278.huskhomes.HuskHomes
    • getLocalCachedSpawn

      public Optional<net.william278.huskhomes.config.CachedSpawn> getLocalCachedSpawn()
      Specified by:
      getLocalCachedSpawn in interface net.william278.huskhomes.HuskHomes
    • setServerSpawn

      public void setServerSpawn(@NotNull @NotNull net.william278.huskhomes.position.Location location)
      Specified by:
      setServerSpawn in interface net.william278.huskhomes.HuskHomes
    • getPluginHooks

      @NotNull public @NotNull Set<net.william278.huskhomes.hook.PluginHook> getPluginHooks()
      Specified by:
      getPluginHooks in interface net.william278.huskhomes.HuskHomes
    • resolveSafeGroundLocation

      public CompletableFuture<Optional<net.william278.huskhomes.position.Location>> resolveSafeGroundLocation(@NotNull @NotNull net.william278.huskhomes.position.Location location)
      Specified by:
      resolveSafeGroundLocation in interface net.william278.huskhomes.HuskHomes
    • getPluginVersion

      @NotNull public @NotNull net.william278.desertwell.Version getPluginVersion()
      Specified by:
      getPluginVersion in interface net.william278.huskhomes.HuskHomes
    • getCommands

      @NotNull public @NotNull List<net.william278.huskhomes.command.CommandBase> getCommands()
      Specified by:
      getCommands in interface net.william278.huskhomes.HuskHomes
    • getPluginServer

      @NotNull public @NotNull net.william278.huskhomes.position.Server getPluginServer() throws net.william278.huskhomes.HuskHomesException
      Specified by:
      getPluginServer in interface net.william278.huskhomes.HuskHomes
      Throws:
      net.william278.huskhomes.HuskHomesException
    • fetchServer

      public CompletableFuture<Void> fetchServer(@NotNull @NotNull net.william278.huskhomes.player.OnlineUser requester)
      Specified by:
      fetchServer in interface net.william278.huskhomes.HuskHomes
    • getWorlds

      @NotNull public @NotNull List<net.william278.huskhomes.position.World> getWorlds()
      Specified by:
      getWorlds in interface net.william278.huskhomes.HuskHomes
    • reload

      public boolean reload()
      Specified by:
      reload in interface net.william278.huskhomes.HuskHomes
    • isBlockUnsafe

      public boolean isBlockUnsafe(@NotNull @NotNull String blockId)
      Specified by:
      isBlockUnsafe in interface net.william278.huskhomes.HuskHomes
    • registerMetrics

      public void registerMetrics(int metricsId)
      Specified by:
      registerMetrics in interface net.william278.huskhomes.HuskHomes