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

    Fields
    Modifier and Type
    Field
    Description
    net.milkbowl.vault.chat.Chat
    Vault chat
    boolean
    Should essence chat allow colours?
    boolean
    Stores if Essence should manage chat messages or not
    The nameFormat to use in chats.
    Stores which commands are disabled.
    boolean
    The config.yml's disabled-commands-feedback value is stored here.
    Economy symbol.
    boolean
    Stores update status.
    Map<org.bukkit.command.CommandSender,org.bukkit.command.CommandSender>
    Stores message history.
    Manages random numbers.
    Stores pending teleports.
    Stores pending teleport requests.
    boolean
    Stores if PlaceholderAPI is being used.
    boolean
    The config.yml's verbose value is stored here.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This function runs when Essence is enabled.

    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, onDisable, onLoad, 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 org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Field Details

    • verbose

      public boolean verbose
      The config.yml's verbose value is stored here.
    • disabledCommandsFeedback

      public boolean disabledCommandsFeedback
      The config.yml's disabled-commands-feedback value is stored here.
    • teleportRequests

      public Map<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")
    • teleportingPlayers

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

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

      public List<String> disabledCommands
      Stores which commands are disabled.
    • hasPendingUpdate

      public boolean hasPendingUpdate
      Stores update status.
    • rand

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

      public boolean usingPAPI
      Stores if PlaceholderAPI is being used.
    • chat_nameFormat

      public String chat_nameFormat
      The nameFormat to use in chats.
    • chat_manage

      public boolean chat_manage
      Stores if Essence should manage chat messages or not
    • chat_allowMessageFormatting

      public boolean chat_allowMessageFormatting
      Should essence chat allow colours?
    • chat

      public net.milkbowl.vault.chat.Chat chat
      Vault chat
    • economySymbol

      public String economySymbol
      Economy symbol.
  • 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