Class PapiPlaceholderApplier
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.placeholder.PapiPlaceholderApplier
- All Implemented Interfaces:
PlaceholderApplier
PlaceholderApplier that delegates to PlaceholderAPI when the plugin is enabled at
runtime. The auto-configuration installs this implementation when
me.clip.placeholderapi.PlaceholderAPI is present on the classpath (checked via
Class.forName in InventoryApiAutoConfiguration).
If the PlaceholderAPI plugin happens to be on the classpath but disabled at runtime
(rare), apply(Player, String) returns the input unchanged.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.guilhermekaua.spigotboot.inventoryapi.placeholder.PlaceholderApplier
applyAll
-
Constructor Details
-
PapiPlaceholderApplier
public PapiPlaceholderApplier()
-
-
Method Details
-
apply
public String apply(@Nullable @Nullable org.bukkit.entity.Player player, @Nullable @Nullable String text) Description copied from interface:PlaceholderApplierApplies placeholders to a single text fragment.- Specified by:
applyin interfacePlaceholderApplier- Parameters:
player- the viewer whose context should resolve player-scoped placeholders; may benullwhen no specific player is in scopetext- the text to process; may benull- Returns:
- the processed text, or the original input if
textisnull
-