Class PlotSpecificPlaceholder
java.lang.Object
com.plotsquared.core.util.placeholders.Placeholder
com.plotsquared.core.util.placeholders.PlotSpecificPlaceholder
- Direct Known Subclasses:
PlotFlagPlaceholder
A
placeholder that requires a plot-
Constructor Summary
ConstructorsConstructorDescriptionPlotSpecificPlaceholder(@NonNull String key, boolean requireAbsolute) Create a functional placeholder -
Method Summary
Modifier and TypeMethodDescriptiongetValue(@NonNull PlotPlayer<?> player) Get the value of the placeholder for a particular playergetValue(@NonNull PlotPlayer<?> player, @NonNull Plot plot) Methods inherited from class com.plotsquared.core.util.placeholders.Placeholder
getKey
-
Constructor Details
-
PlotSpecificPlaceholder
-
PlotSpecificPlaceholder
Create a functional placeholder- Parameters:
key- Placeholder keyrequireAbsolute- If the plot given to the placeholder should be the absolute (not base) plot- Since:
- 7.5.9
-
-
Method Details
-
getValue
Description copied from class:PlaceholderGet the value of the placeholder for a particular player- Specified by:
getValuein classPlaceholder- Parameters:
player- Player- Returns:
- Placeholder value. Return
""if no placeholder value can be returned
-
getValue
- Parameters:
player- Player that the placeholder is evaluated forplot- Plot that the player is in- Returns:
- Placeholder value, or
""if the placeholder does not apply
-