Class MazePlaceholders
java.lang.Object
me.clip.placeholderapi.PlaceholderHook
me.clip.placeholderapi.expansion.PlaceholderExpansion
dev.despical.mazeengine.integration.MazePlaceholders
- All Implemented Interfaces:
AutoCloseable
public final class MazePlaceholders
extends me.clip.placeholderapi.expansion.PlaceholderExpansion
implements AutoCloseable
Publishes maze metadata through the optional PlaceholderAPI expansion.
A server-thread task captures global counts, named-maze fields, current-player maze fields, and ownership counts into copied maps. Request handlers read one volatile cache value rather than querying live Bukkit worlds or maze services from a potentially asynchronous placeholder invocation.
The expansion supports the mazeengine identifier and persists across PlaceholderAPI reloads. Closing it cancels the refresh task, unregisters the expansion, and clears cached values. Recognized fields with no matching maze return empty text, while unknown placeholders return null.
-
Nested Class Summary
Nested classes/interfaces inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion
me.clip.placeholderapi.expansion.PlaceholderExpansion.Type -
Field Summary
Fields inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion
expansionType -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion
canRegister, configurationContains, equals, get, getBoolean, getConfigSection, getConfigSection, getDescription, getDouble, getExpansionType, getInt, getLink, getLong, getName, getPlaceholderAPI, getPlaceholders, getPlugin, getRequiredPlugin, getString, getStringList, info, isRegistered, log, log, register, setExpansionType, severe, severe, toString, unregister, warningMethods inherited from class me.clip.placeholderapi.PlaceholderHook
onPlaceholderRequest
-
Constructor Details
-
MazePlaceholders
-
-
Method Details
-
start
public void start() -
getIdentifier
- Specified by:
getIdentifierin classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
getAuthor
- Specified by:
getAuthorin classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
getVersion
- Specified by:
getVersionin classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
persist
public boolean persist()- Overrides:
persistin classme.clip.placeholderapi.expansion.PlaceholderExpansion
-
onRequest
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-