Class PlaceholderAPI

java.lang.Object
me.clip.placeholderapi.PlaceholderHook
me.clip.placeholderapi.expansion.PlaceholderExpansion
valorless.havenbags.hooks.PlaceholderAPI

public class PlaceholderAPI extends me.clip.placeholderapi.expansion.PlaceholderExpansion
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    onRequest(org.bukkit.OfflinePlayer player, @NotNull String identifier)
    This is the method called when a placeholder with our identifier is found and needs a value.
    boolean
     

    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, 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

    • PlaceholderAPI

      public PlaceholderAPI()
  • Method Details

    • persist

      public boolean persist()
      Overrides:
      persist in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • getIdentifier

      public String getIdentifier()
      Specified by:
      getIdentifier in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • onRequest

      public String onRequest(org.bukkit.OfflinePlayer player, @NotNull @NotNull String identifier)
      This is the method called when a placeholder with our identifier is found and needs a value.
      We specify the value identifier in this method.
      Since version 2.9.1 can you use OfflinePlayers in your requests.
      Overrides:
      onRequest in class me.clip.placeholderapi.PlaceholderHook
      Parameters:
      player - An OfflinePlayer.
      identifier - A String containing the identifier/value.
      Returns:
      possibly-null String of the requested identifier.