Class UserPrefixExpansion


  • public class UserPrefixExpansion
    extends cc.carm.lib.easyplugin.papi.EasyPlaceholder
    • Nested Class Summary

      • Nested classes/interfaces inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion

        me.clip.placeholderapi.expansion.PlaceholderExpansion.Type
    • Field Summary

      • Fields inherited from class cc.carm.lib.easyplugin.papi.EasyPlaceholder

        author, name, persistent, plugin, rootExpansion, version
      • Fields inherited from class me.clip.placeholderapi.expansion.PlaceholderExpansion

        expansionType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePlayer​(BiFunction<Player,​String[],​Object> handler)  
      cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePlayer​(Function<Player,​Object> handler)  
      cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePrefix​(BiFunction<PrefixConfig,​Player,​Object> handler)  
      cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePrefix​(Function<PrefixConfig,​Object> handler)  
      String onErrorParams​(@Nullable OfflinePlayer player)  
      String onException​(@Nullable OfflinePlayer player, @NotNull cc.carm.lib.easyplugin.papi.expansion.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, getBoolean, getConfigSection, getConfigSection, getDescription, getDouble, getExpansionType, getInt, getLink, getLong, getPlaceholderAPI, getPlugin, getString, getStringList, info, isRegistered, log, log, register, setExpansionType, severe, severe, toString, unregister, warning
      • Methods inherited from class me.clip.placeholderapi.PlaceholderHook

        onPlaceholderRequest
    • Constructor Detail

      • UserPrefixExpansion

        public UserPrefixExpansion​(@NotNull
                                   @NotNull JavaPlugin plugin,
                                   @NotNull
                                   @NotNull String rootIdentifier)
    • Method Detail

      • handlePrefix

        public cc.carm.lib.easyplugin.papi.handler.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 class cc.carm.lib.easyplugin.papi.EasyPlaceholder
      • handlePlayer

        public cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePlayer​(BiFunction<Player,​String[],​Object> handler)
      • handlePlayer

        public cc.carm.lib.easyplugin.papi.handler.PlaceholderHandler handlePlayer​(Function<Player,​Object> handler)
      • onErrorParams

        public String onErrorParams​(@Nullable
                                    @Nullable OfflinePlayer player)
        Overrides:
        onErrorParams in class cc.carm.lib.easyplugin.papi.EasyPlaceholder
      • onException

        public String onException​(@Nullable
                                  @Nullable OfflinePlayer player,
                                  @NotNull
                                  @NotNull cc.carm.lib.easyplugin.papi.expansion.SubExpansion<?> expansion,
                                  @NotNull
                                  @NotNull Exception exception)
        Overrides:
        onException in class cc.carm.lib.easyplugin.papi.EasyPlaceholder