Class EssencePAPIExpansion

java.lang.Object
me.clip.placeholderapi.PlaceholderHook
me.clip.placeholderapi.expansion.PlaceholderExpansion
net.lewmc.essence.EssencePAPIExpansion

public class EssencePAPIExpansion extends me.clip.placeholderapi.expansion.PlaceholderExpansion
Essence's PlaceholderAPI Expansion class.
  • Nested Class Summary

    Nested classes/interfaces inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion

    me.clip.placeholderapi.expansion.PlaceholderExpansion.Type
  • Field Summary

    Fields inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion

    expansionType
  • Constructor Summary

    Constructors
    Constructor
    Description
    Sets up the class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Retrieves the author.
    @NotNull String
    Retrieves the identifier.
    @NotNull String
    Retrieves the version.
    onRequest(org.bukkit.OfflinePlayer player, @NotNull String param)
    Handles the PAPI request.

    Methods inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion

    canRegister, configurationContains, equals, get, getBoolean, getConfigSection, getConfigSection, getDescription, getDouble, getExpansionType, getInt, getLink, getLong, getName, getPlaceholderAPI, getPlaceholders, getPlugin, getRequiredPlugin, getString, getStringList, info, isRegistered, log, log, persist, register, setExpansionType, severe, severe, toString, unregister, warning

    Methods inherited from class me.clip.placeholderapi.PlaceholderHook

    onPlaceholderRequest

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EssencePAPIExpansion

      public EssencePAPIExpansion(Essence plugin)
      Sets up the class.
      Parameters:
      plugin - Reference to the main Essence class.
  • Method Details

    • getAuthor

      @NotNull public @NotNull String getAuthor()
      Retrieves the author.
      Specified by:
      getAuthor in class me.clip.placeholderapi.expansion.PlaceholderExpansion
      Returns:
      String - Author's name
    • getIdentifier

      @NotNull public @NotNull String getIdentifier()
      Retrieves the identifier.
      Specified by:
      getIdentifier in class me.clip.placeholderapi.expansion.PlaceholderExpansion
      Returns:
      String - The identifier
    • getVersion

      @NotNull public @NotNull String getVersion()
      Retrieves the version.
      Specified by:
      getVersion in class me.clip.placeholderapi.expansion.PlaceholderExpansion
      Returns:
      String - The version
    • onRequest

      public String onRequest(org.bukkit.OfflinePlayer player, @NotNull @NotNull String param)
      Handles the PAPI request.
      Overrides:
      onRequest in class me.clip.placeholderapi.PlaceholderHook
      Parameters:
      player - OfflinePlayer - The player making the request.
      param - String - The param.
      Returns:
      String - The placeholder response.