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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @NotNull String
     
    @NotNull String
     
    @NotNull String
     
    onRequest(org.bukkit.OfflinePlayer player, String params)
     
    boolean
     
    void
     

    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, warning

    Methods inherited from class me.clip.placeholderapi.PlaceholderHook

    onPlaceholderRequest

    Methods inherited from class Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • start

      public void start()
    • getIdentifier

      @NotNull public @NotNull String getIdentifier()
      Specified by:
      getIdentifier in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • getAuthor

      @NotNull public @NotNull String getAuthor()
      Specified by:
      getAuthor in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • getVersion

      @NotNull public @NotNull String getVersion()
      Specified by:
      getVersion in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • persist

      public boolean persist()
      Overrides:
      persist in class me.clip.placeholderapi.expansion.PlaceholderExpansion
    • onRequest

      public String onRequest(org.bukkit.OfflinePlayer player, String params)
      Overrides:
      onRequest in class me.clip.placeholderapi.PlaceholderHook
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable