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 Details

    • log

      public net.lewmc.foundry.Logger log
      The logging system.
    • teleportRequests

      public ConcurrentMap<String,String[]> 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

      public List<UUID> teleportingPlayers
      Stores pending teleports. UUID = The requested player's UUID.
    • msgHistory

      public ConcurrentMap<org.bukkit.command.CommandSender,org.bukkit.command.CommandSender> msgHistory
      Stores message history. CommandSender = The receiver. CommandSender = The sender.
    • players

      public ConcurrentMap<UUID,TypePlayer> players
      Stores a cache of player data.
    • config

      public ConcurrentMap<String,Object> config
      Store's Essence's configuration.
    • flyingPlayers

      public List<UUID> flyingPlayers
      Stores which players are flying.
    • hasPendingUpdate

      public boolean hasPendingUpdate
      Stores update status.
    • rand

      public Random rand
      Manages random numbers. Pseudo-random, not to be used in secure contexts.
    • foundryConfig

      public net.lewmc.foundry.FoundryConfig foundryConfig
      Holds the Foundry configuration.
    • integrations

      public EssenceIntegrations integrations
      Holds Essence's integrations.
    • verbose

      public boolean verbose
      Handles if Essence should be verbose.
    • messageStore

      public net.lewmc.foundry.Files messageStore
      Stores the language file.
    • deferredTasksRun

      public boolean deferredTasksRun
      Checks 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:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • startupConfig

      public void startupConfig()
      Starts Essence's config.
      Since:
      1.10.1
    • onDisable

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