Class CustomSuffixManager
java.lang.Object
me.remigio07.chatplugin.api.server.tablist.custom_suffix.CustomSuffixManager
- All Implemented Interfaces:
Runnable,ChatPluginManager
Manager that handles custom suffixes in the
Tablist.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the displayed value of the custom suffix.static CustomSuffixManagerGets this manager's instance.Gets the list of placeholder types used to translategetDisplayedValue().Gets the render type of the custom suffix.booleanChecks if this manager is enabled.abstract voidrun()Automatic custom suffixes updater, called once everyTablistManager.getSendingTimeout()ms.abstract voidUpdates custom suffixes to a player.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.remigio07.chatplugin.api.common.util.manager.ChatPluginManager
checkAvailability, isReloadable, load, reload, unload
-
Constructor Details
-
CustomSuffixManager
public CustomSuffixManager()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if this manager is enabled.Found at: "tablists.settings.custom-suffix.enabled" in
ConfigurationType.TABLISTS- Specified by:
isEnabledin interfaceChatPluginManager- Returns:
- Whether this manager is enabled
-
getDisplayedValue
Gets the displayed value of the custom suffix.Found at: "tablists.settings.custom-suffix.displayed-value" in
ConfigurationType.TABLISTS- Returns:
- Displayed value of the suffix
-
getRenderType
Gets the render type of the custom suffix.Found at: "tablists.settings.custom-suffix.render-type" in
ConfigurationType.TABLISTS- Returns:
- Render type of the suffix
-
getPlaceholderTypes
Gets the list of placeholder types used to translategetDisplayedValue().Found at: "tablists.settings.custom-suffix.placeholder-types" in
ConfigurationType.TABLISTS- Returns:
- Placeholders used to translate displayed value
-
getInstance
Gets this manager's instance.- Returns:
- Manager's instance
-
run
public abstract void run()Automatic custom suffixes updater, called once everyTablistManager.getSendingTimeout()ms. -
updateCustomSuffixes
Updates custom suffixes to a player.- Parameters:
player- Player to update the suffixes for
-