Package net.lewmc.essence
Class Essence
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
net.lewmc.essence.Essence
- All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class Essence
extends org.bukkit.plugin.java.JavaPlugin
The main Essence class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStore's Essence's configuration.booleanChecks if deferred tasks have been run (in Core/EventWorldLoad)Stores which players are flying.net.lewmc.foundry.FoundryConfigHolds the Foundry configuration.booleanStores update status.Holds Essence's integrations.net.lewmc.foundry.LoggerThe logging system.net.lewmc.foundry.FilesStores the language file.ConcurrentMap<org.bukkit.command.CommandSender, org.bukkit.command.CommandSender> Stores message history.Stores pending player clears.Stores a cache of player data.Manages random numbers.Stores pending teleports.Stores pending teleport requests.booleanHandles if Essence should be verbose. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonEnable()This function runs when Essence is enabled.voidStarts Essence's config.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Field Details
-
log
public net.lewmc.foundry.Logger logThe logging system. -
teleportRequests
Stores pending teleport requests. String = The requested player's name. String[] = The requester and if the requested player should teleport to them or not ("true" or "false") -
pendingClears
Stores pending player clears. UUID = The requested player's UUID. TypePendingRequests.TypePendingClears = Data -
teleportingPlayers
Stores pending teleports. UUID = The requested player's UUID. -
msgHistory
Stores message history. CommandSender = The receiver. CommandSender = The sender. -
players
Stores a cache of player data. -
config
Store's Essence's configuration. -
flyingPlayers
Stores which players are flying. -
hasPendingUpdate
public boolean hasPendingUpdateStores update status. -
rand
Manages random numbers. Pseudo-random, not to be used in secure contexts. -
foundryConfig
public net.lewmc.foundry.FoundryConfig foundryConfigHolds the Foundry configuration. -
integrations
Holds Essence's integrations. -
verbose
public boolean verboseHandles if Essence should be verbose. -
messageStore
public net.lewmc.foundry.Files messageStoreStores the language file. -
deferredTasksRun
public boolean deferredTasksRunChecks if deferred tasks have been run (in Core/EventWorldLoad)
-
-
Constructor Details
-
Essence
public Essence()
-
-
Method Details
-
onEnable
public void onEnable()This function runs when Essence is enabled.- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
startupConfig
public void startupConfig()Starts Essence's config.- Since:
- 1.10.1
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-