Package cc.carm.plugin.userprefix.hooker
Class UserPrefixExpansion
- java.lang.Object
-
- me.clip.placeholderapi.PlaceholderHook
-
- me.clip.placeholderapi.expansion.PlaceholderExpansion
-
- cc.carm.lib.easyplugin.papi.EasyPlaceholder
-
- cc.carm.plugin.userprefix.hooker.UserPrefixExpansion
-
public class UserPrefixExpansion extends EasyPlaceholder
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.easyplugin.papi.EasyPlaceholder
author, name, persistent, plugin, rootExpansion, version
-
-
Constructor Summary
Constructors Constructor Description UserPrefixExpansion(@NotNull JavaPlugin plugin, @NotNull String rootIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlaceholderHandler
handlePlayer(BiFunction<Player,String[],Object> handler)
PlaceholderHandler
handlePlayer(Function<Player,Object> handler)
PlaceholderHandler
handlePrefix(Function<PrefixConfig,Object> handler)
String
onErrorParams(@Nullable OfflinePlayer player)
String
onException(@Nullable OfflinePlayer player, @NotNull SubExpansion<?> expansion, @NotNull Exception exception)
boolean
persist()
This is required or else PlaceholderAPI will unregister the Expansion on reload-
Methods inherited from class cc.carm.lib.easyplugin.papi.EasyPlaceholder
getAuthor, getIdentifier, getName, getPlaceholders, getRequiredPlugin, getRootExpansion, getVersion, handle, handle, handle, handle, handleSection, onNullResponse, onRequest
-
Methods inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion
canRegister, configurationContains, equals, get, getConfigSection, getConfigSection, getDescription, getDouble, getInt, getLink, getLong, getPlaceholderAPI, getPlugin, getString, getStringList, hashCode, isRegistered, register, toString, unregister
-
-
-
-
Constructor Detail
-
UserPrefixExpansion
public UserPrefixExpansion(@NotNull @NotNull JavaPlugin plugin, @NotNull @NotNull String rootIdentifier)
-
-
Method Detail
-
handlePrefix
public PlaceholderHandler handlePrefix(Function<PrefixConfig,Object> handler)
-
persist
public boolean persist()
This is required or else PlaceholderAPI will unregister the Expansion on reload- Overrides:
persist
in classEasyPlaceholder
-
handlePlayer
public PlaceholderHandler handlePlayer(BiFunction<Player,String[],Object> handler)
-
handlePlayer
public PlaceholderHandler handlePlayer(Function<Player,Object> handler)
-
onErrorParams
public String onErrorParams(@Nullable @Nullable OfflinePlayer player)
- Overrides:
onErrorParams
in classEasyPlaceholder
-
onException
public String onException(@Nullable @Nullable OfflinePlayer player, @NotNull @NotNull SubExpansion<?> expansion, @NotNull @NotNull Exception exception)
- Overrides:
onException
in classEasyPlaceholder
-
-