Class PlaceholderAPI

java.lang.Object
me.clip.placeholderapi.PlaceholderHook
me.clip.placeholderapi.expansion.PlaceholderExpansion
com.ranull.graves.integration.PlaceholderAPI
All Implemented Interfaces:
me.clip.placeholderapi.expansion.Relational

public final class PlaceholderAPI extends me.clip.placeholderapi.expansion.PlaceholderExpansion implements me.clip.placeholderapi.expansion.Relational
Integration class for PlaceholderAPI to provide custom placeholders for the Graves plugin. Extends PlaceholderExpansion and implements Relational for placeholder handling.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new PlaceholderAPI instance with the specified Graves plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NotNull String
     
    @NotNull String
     
    @NotNull String
     
    onPlaceholderRequest(org.bukkit.entity.Player player, @NotNull String identifier)
    Handles placeholder requests for the Graves plugin.
    onPlaceholderRequest(org.bukkit.entity.Player playerOne, org.bukkit.entity.Player playerTwo, String identifier)
    Handles relational placeholder requests (not yet implemented).
    boolean
     

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

    configurationContains, equals, get, getBoolean, getConfigSection, getConfigSection, getDescription, getDouble, getInt, getLink, getLong, getName, getPlaceholderAPI, getPlaceholders, getPlugin, getRequiredPlugin, getString, getStringList, isRegistered, register, toString, unregister

    Methods inherited from class me.clip.placeholderapi.PlaceholderHook

    onRequest

    Methods inherited from class java.lang.Object

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

    • PlaceholderAPI

      public PlaceholderAPI(Graves plugin)
      Constructs a new PlaceholderAPI instance with the specified Graves plugin.
      Parameters:
      plugin - The main Graves plugin instance.
  • Method Details

    • persist

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

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

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

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

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

      public String onPlaceholderRequest(org.bukkit.entity.Player player, @NotNull @NotNull String identifier)
      Handles placeholder requests for the Graves plugin.
      Overrides:
      onPlaceholderRequest in class me.clip.placeholderapi.PlaceholderHook
      Parameters:
      player - The player requesting the placeholder (may be null).
      identifier - The identifier of the placeholder.
      Returns:
      The value of the placeholder, or an empty string if not applicable.
    • onPlaceholderRequest

      public String onPlaceholderRequest(org.bukkit.entity.Player playerOne, org.bukkit.entity.Player playerTwo, String identifier)
      Handles relational placeholder requests (not yet implemented).
      Specified by:
      onPlaceholderRequest in interface me.clip.placeholderapi.expansion.Relational
      Parameters:
      playerOne - The first player.
      playerTwo - The second player.
      identifier - The identifier of the placeholder.
      Returns:
      The value of the placeholder, or null if not implemented.