public class PlaceholderAPI extends JavaPlugin
| Constructor and Description |
|---|
PlaceholderAPI() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlaceholderListener(PlaceholderAddedEvent handler)
Add a placeholder listener
|
static int |
getLoadedPlaceholderCount()
Returns the amount of placeholders loaded into the memory
|
static void |
initialize(PlaceholderAPI api) |
void |
onEnable() |
boolean |
registerMVdWPlugin(Plugin plugin,
PlaceholderPlugin placeholderPlugin)
Register an MVdW Plugin
|
static boolean |
registerPlaceholder(Plugin plugin,
java.lang.String placeholder,
PlaceholderReplacer replacer)
Register a custom placeholder
|
static boolean |
registerPlaceholder(Plugin plugin,
java.lang.String placeholder,
PlaceholderReplacer replacer,
PlaceholderOptions... options)
Register a custom placeholder
|
static boolean |
registerStaticPlaceholders(Plugin plugin,
java.lang.String placeholder,
java.lang.String value)
Register a static custom placeholder
|
static java.lang.String |
replacePlaceholders(OfflinePlayer offlinePlayer,
java.lang.String input)
Replace placeholders in input
|
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringequals, getName, hashCodepublic void onEnable()
onEnable in interface PluginonEnable in class JavaPluginpublic static void initialize(PlaceholderAPI api)
public boolean registerMVdWPlugin(Plugin plugin, PlaceholderPlugin placeholderPlugin)
plugin - PluginplaceholderPlugin - Placeholder plugin containerpublic static java.lang.String replacePlaceholders(OfflinePlayer offlinePlayer, java.lang.String input)
offlinePlayer - Player to replace placeholders forinput - Placeholder format {placeholder}public static int getLoadedPlaceholderCount()
public static boolean registerPlaceholder(Plugin plugin, java.lang.String placeholder, PlaceholderReplacer replacer)
plugin - Plugin that is registering the placeholderplaceholder - Placeholder to be registered WITHOUT { }public static boolean registerPlaceholder(Plugin plugin, java.lang.String placeholder, PlaceholderReplacer replacer, PlaceholderOptions... options)
plugin - Plugin that is registering the placeholderplaceholder - Placeholder to be registered WITHOUT { }public static boolean registerStaticPlaceholders(Plugin plugin, java.lang.String placeholder, java.lang.String value)
plugin - Plugin that is registering the placeholderplaceholder - Placeholder to be registered WITHOUT { }value - Placeholder valuepublic void addPlaceholderListener(PlaceholderAddedEvent handler)
handler - placeholder added handler