Interface RelationalPlaceholderExpansion
- All Superinterfaces:
PlaceholderExpansion
Specialized expansion contract for relational placeholders.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIndicates whether this expansion is relational (requiring viewer and target players).@Nullable StringonRelationalRequest(org.bukkit.entity.Player viewer, org.bukkit.entity.Player target, String params) Evaluates a relational placeholder request comparing two players.Methods inherited from interface PlaceholderExpansion
author, identifier, onAsyncRequest, onContextRequest, onRequest, persist, supportsAsync, version
-
Method Details
-
isRelational
default boolean isRelational()Description copied from interface:PlaceholderExpansionIndicates whether this expansion is relational (requiring viewer and target players).- Specified by:
isRelationalin interfacePlaceholderExpansion- Returns:
trueif relational
-
onRelationalRequest
@Nullable String onRelationalRequest(org.bukkit.entity.Player viewer, org.bukkit.entity.Player target, String params) Description copied from interface:PlaceholderExpansionEvaluates a relational placeholder request comparing two players.- Specified by:
onRelationalRequestin interfacePlaceholderExpansion- Parameters:
viewer- viewer playertarget- target playerparams- parameters after the identifier- Returns:
- evaluated string result, or
nullif unhandled
-