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.
  • Field Details

  • 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.
    • initializePlaceholderHandlers

      private Map<String,Function<String,String>> initializePlaceholderHandlers()
      Initializes the placeholder handlers.
      Returns:
      A map of placeholder handlers.
    • getOwnerDetail

      private String getOwnerDetail(UUID uuid, Function<Grave,String> function)