Class Placeholder
java.lang.Object
com.plotsquared.core.util.placeholders.Placeholder
- Direct Known Subclasses:
PlotSpecificPlaceholder
A placeholder is a keyed value that gets replaced by a
player
-specific value at runtime-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull String
getKey()
Get the placeholder keyabstract @NonNull String
getValue(@NonNull PlotPlayer<?> player)
Get the value of the placeholder for a particular player
-
Constructor Details
-
Placeholder
-
-
Method Details
-
getValue
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
Get the placeholder key- Returns:
- Placeholder key
-