Class PlaceholderAPIHook

java.lang.Object
dev.esophose.playerparticles.hook.PlaceholderAPIHook

public final class PlaceholderAPIHook
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    PlaceholderAPIHook()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String applyPlaceholders​(org.bukkit.entity.Player player, java.lang.String text)
    Applies placeholders from PlaceholderAPI to strings
    static boolean enabled()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • enabled

      public static boolean enabled()
      Returns:
      true if PlaceholderAPI is enabled, otherwise false
    • applyPlaceholders

      public static java.lang.String applyPlaceholders​(org.bukkit.entity.Player player, java.lang.String text)
      Applies placeholders from PlaceholderAPI to strings
      Parameters:
      player - The Player to apply placeholders with
      text - The text to replace placeholders
      Returns:
      A string with replaced placeholders