Class PlotSpecificPlaceholder

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

public abstract class PlotSpecificPlaceholder extends Placeholder
A placeholder that requires a plot
  • Constructor Details

    • PlotSpecificPlaceholder

      public PlotSpecificPlaceholder(@NonNull String key)
  • Method Details

    • getValue

      public final @NonNull String getValue(@NonNull PlotPlayer<?> player)
      Description copied from class: Placeholder
      Get the value of the placeholder for a particular player
      Specified by:
      getValue in class Placeholder
      Parameters:
      player - Player
      Returns:
      Placeholder value. Return "" if no placeholder value can be returned
    • getValue

      public abstract @NonNull String getValue(@NonNull PlotPlayer<?> player, @NonNull Plot plot)
      Get the value of the placeholder for the player in a specific plot
      Parameters:
      player - Player that the placeholder is evaluated for
      plot - Plot that the player is in
      Returns:
      Placeholder value, or "" if the placeholder does not apply