public interface PlaceholdersService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
parsePlaceholders(org.bukkit.OfflinePlayer offlinePlayer,
java.lang.String value)
Parse placeholders in a given string.
|
void |
registerPlaceholder(java.lang.String placeholderName,
IslandPlaceholderParser placeholderFunction)
Register a new placeholder.
|
void |
registerPlaceholder(java.lang.String placeholderName,
PlayerPlaceholderParser placeholderFunction)
Register a new placeholder.
|
java.lang.String parsePlaceholders(org.bukkit.OfflinePlayer offlinePlayer, java.lang.String value)
offlinePlayer
- The player to parse placeholders to.value
- The string to parse.void registerPlaceholder(java.lang.String placeholderName, IslandPlaceholderParser placeholderFunction)
placeholderName
- The name of the placeholder.
The name is the part in the placeholder after the prefix (`superior_placeholderFunction
- The parser to run when the placeholder is evaluated.
It is recommended to cache all values return by the placeholder for best performance.void registerPlaceholder(java.lang.String placeholderName, PlayerPlaceholderParser placeholderFunction)
placeholderName
- The name of the placeholder.
The name is the part in the placeholder after the prefix (`superior_placeholderFunction
- The parser to run when the placeholder is evaluated.
It is recommended to cache all values return by the placeholder for best performance.