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

    Constructors
    Constructor
    Description
    Default constructor - do not use this.
    Use DependencyModule.placeholderAPI instead.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    onRequest​(org.bukkit.OfflinePlayer p, String parameter)
     
    static String
    parsePlaceholders​(org.bukkit.entity.Player player, String text)
    Parse a text with placeholders.
    boolean
     
    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

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getAuthor

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

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

      public 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 p, String parameter)
      Overrides:
      onRequest in class me.clip.placeholderapi.PlaceholderHook
    • parsePlaceholders

      public static String parsePlaceholders(org.bukkit.entity.Player player, String text)
      Parse a text with placeholders.
      Parameters:
      player - Player
      text - Text with placeholders
      Returns:
      Text with placeholders replaced with their value
    • unregisterOnDisable

      public void unregisterOnDisable()