Class CustomSuffixManager
java.lang.Object
java.util.TimerTask
me.remigio07.chatplugin.api.server.tablist.custom_suffix.CustomSuffixManager
- All Implemented Interfaces:
Runnable
,ChatPluginManager
Manager that handles custom suffixes in the
Tablist
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the displayed value of the custom suffix.static CustomSuffixManager
Gets this manager's instance.Gets the list of placeholder types used to translategetDisplayedValue()
.Gets the render type of the custom suffix.boolean
Checks if this manager is enabled.abstract void
run()
Automatic custom suffixes updater, called once everyTablistManager.getSendingTimeout()
ms.abstract void
Updates custom suffixes to a player.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isEnabled
in 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
-