Package net.william278.huskhomes
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
ModifierConstructorDescriptionprotected
BukkitHuskHomes(@NotNull org.bukkit.plugin.java.JavaPluginLoader loader, @NotNull org.bukkit.plugin.PluginDescriptionFile description, @NotNull File dataFolder, @NotNull File file)
-
Method Summary
Modifier and TypeMethodDescriptionfetchServer(@NotNull net.william278.huskhomes.player.OnlineUser requester)
net.kyori.adventure.platform.bukkit.BukkitAudiences
Returns the adventure Bukkit audiences@NotNull net.william278.huskhomes.Cache
getCache()
@NotNull List<net.william278.huskhomes.command.CommandBase>
@NotNull net.william278.huskhomes.database.Database
@NotNull net.william278.huskhomes.event.EventDispatcher
static BukkitHuskHomes
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
onEnable()
void
onLoad()
void
registerMetrics(int metricsId)
boolean
reload()
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
-
-
Method Details
-
getInstance
-
onLoad
public void onLoad()- Specified by:
onLoad
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onLoad
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
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.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 interfacenet.william278.huskhomes.HuskHomes
-
getOnlinePlayers
- Specified by:
getOnlinePlayers
in interfacenet.william278.huskhomes.HuskHomes
-
getSettings
@NotNull public @NotNull net.william278.huskhomes.config.Settings getSettings()- Specified by:
getSettings
in interfacenet.william278.huskhomes.HuskHomes
-
getLocales
@NotNull public @NotNull net.william278.huskhomes.config.Locales getLocales()- Specified by:
getLocales
in interfacenet.william278.huskhomes.HuskHomes
-
getDatabase
@NotNull public @NotNull net.william278.huskhomes.database.Database getDatabase()- Specified by:
getDatabase
in interfacenet.william278.huskhomes.HuskHomes
-
getCache
@NotNull public @NotNull net.william278.huskhomes.Cache getCache()- Specified by:
getCache
in interfacenet.william278.huskhomes.HuskHomes
-
getRequestManager
@NotNull public @NotNull net.william278.huskhomes.request.RequestManager getRequestManager()- Specified by:
getRequestManager
in interfacenet.william278.huskhomes.HuskHomes
-
getSavedPositionManager
@NotNull public @NotNull net.william278.huskhomes.position.SavedPositionManager getSavedPositionManager()- Specified by:
getSavedPositionManager
in interfacenet.william278.huskhomes.HuskHomes
-
getNetworkMessenger
@NotNull public @NotNull net.william278.huskhomes.messenger.NetworkMessenger getNetworkMessenger()- Specified by:
getNetworkMessenger
in interfacenet.william278.huskhomes.HuskHomes
-
getRandomTeleportEngine
@NotNull public @NotNull net.william278.huskhomes.random.RandomTeleportEngine getRandomTeleportEngine()- Specified by:
getRandomTeleportEngine
in interfacenet.william278.huskhomes.HuskHomes
-
setRandomTeleportEngine
public void setRandomTeleportEngine(@NotNull @NotNull net.william278.huskhomes.random.RandomTeleportEngine randomTeleportEngine)- Specified by:
setRandomTeleportEngine
in interfacenet.william278.huskhomes.HuskHomes
-
getEventDispatcher
@NotNull public @NotNull net.william278.huskhomes.event.EventDispatcher getEventDispatcher()- Specified by:
getEventDispatcher
in interfacenet.william278.huskhomes.HuskHomes
-
getMigrators
- Specified by:
getMigrators
in interfacenet.william278.huskhomes.HuskHomes
-
getLocalCachedSpawn
- Specified by:
getLocalCachedSpawn
in interfacenet.william278.huskhomes.HuskHomes
-
setServerSpawn
public void setServerSpawn(@NotNull @NotNull net.william278.huskhomes.position.Location location)- Specified by:
setServerSpawn
in interfacenet.william278.huskhomes.HuskHomes
-
getPluginHooks
- Specified by:
getPluginHooks
in interfacenet.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 interfacenet.william278.huskhomes.HuskHomes
-
getPluginVersion
@NotNull public @NotNull net.william278.desertwell.Version getPluginVersion()- Specified by:
getPluginVersion
in interfacenet.william278.huskhomes.HuskHomes
-
getCommands
- Specified by:
getCommands
in interfacenet.william278.huskhomes.HuskHomes
-
getPluginServer
@NotNull public @NotNull net.william278.huskhomes.position.Server getPluginServer() throws net.william278.huskhomes.HuskHomesException- Specified by:
getPluginServer
in interfacenet.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 interfacenet.william278.huskhomes.HuskHomes
-
getWorlds
- Specified by:
getWorlds
in interfacenet.william278.huskhomes.HuskHomes
-
reload
public boolean reload()- Specified by:
reload
in interfacenet.william278.huskhomes.HuskHomes
-
isBlockUnsafe
- Specified by:
isBlockUnsafe
in interfacenet.william278.huskhomes.HuskHomes
-
registerMetrics
public void registerMetrics(int metricsId)- Specified by:
registerMetrics
in interfacenet.william278.huskhomes.HuskHomes
-