Class Placeholder

java.lang.Object
com.plotsquared.core.util.placeholders.Placeholder
Direct Known Subclasses:
PlotSpecificPlaceholder

public abstract class Placeholder extends Object
A placeholder is a keyed value that gets replaced by a player-specific value at runtime
  • Constructor Details

  • Method Details

    • getValue

      public abstract @NonNull String getValue(@NonNull PlotPlayer<?> player)
      Get the value of the placeholder for a particular player
      Parameters:
      player - Player
      Returns:
      Placeholder value. Return "" if no placeholder value can be returned
    • getKey

      public final @NonNull String getKey()
      Get the placeholder key
      Returns:
      Placeholder key