Interface RelationalPlaceholderExpansion

All Superinterfaces:
PlaceholderExpansion

@NullMarked public interface RelationalPlaceholderExpansion extends PlaceholderExpansion
Specialized expansion contract for relational placeholders.
  • Method Details

    • isRelational

      default boolean isRelational()
      Description copied from interface: PlaceholderExpansion
      Indicates whether this expansion is relational (requiring viewer and target players).
      Specified by:
      isRelational in interface PlaceholderExpansion
      Returns:
      true if relational
    • onRelationalRequest

      @Nullable String onRelationalRequest(org.bukkit.entity.Player viewer, org.bukkit.entity.Player target, String params)
      Description copied from interface: PlaceholderExpansion
      Evaluates a relational placeholder request comparing two players.
      Specified by:
      onRelationalRequest in interface PlaceholderExpansion
      Parameters:
      viewer - viewer player
      target - target player
      params - parameters after the identifier
      Returns:
      evaluated string result, or null if unhandled