Class PlaceholderUtils
java.lang.Object
me.clip.placeholderapi.PlaceholderHook
me.clip.placeholderapi.expansion.PlaceholderExpansion
nl.mtvehicles.core.infrastructure.dependencies.PlaceholderUtils
public class PlaceholderUtils
extends me.clip.placeholderapi.expansion.PlaceholderExpansion
Methods for PlaceholderAPI soft-dependency.
- Beware!
- Do not initialise this class directly. Use
DependencyModule.placeholderAPI
instead.
-
Constructor Summary
ConstructorDescriptionDefault constructor - do not use this.
UseDependencyModule.placeholderAPI
instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
parsePlaceholders(org.bukkit.entity.Player player, String text)
Parse a text with placeholders.boolean
persist()
void
Methods inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion
canRegister, configurationContains, equals, get, getBoolean, getConfigSection, getConfigSection, getDescription, getDouble, getInt, getLink, getLong, getName, getPlaceholderAPI, getPlaceholders, getPlugin, getRequiredPlugin, getString, getStringList, info, isRegistered, log, log, register, severe, severe, toString, unregister, warning
Methods inherited from class me.clip.placeholderapi.PlaceholderHook
onPlaceholderRequest
-
Constructor Details
-
PlaceholderUtils
public PlaceholderUtils()Default constructor - do not use this.
UseDependencyModule.placeholderAPI
instead.
-
-
Method Details
-
getAuthor
- Specified by:
getAuthor
in classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
getIdentifier
- Specified by:
getIdentifier
in classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
getVersion
- Specified by:
getVersion
in classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
persist
public boolean persist()- Overrides:
persist
in classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
onRequest
- Overrides:
onRequest
in classme.clip.placeholderapi.PlaceholderHook
-
parsePlaceholders
Parse a text with placeholders.- Parameters:
player
- Playertext
- Text with placeholders- Returns:
- Text with placeholders replaced with their value
-
unregisterOnDisable
public void unregisterOnDisable()
-