Class HoverInfoManager
- All Implemented Interfaces:
ChatPluginManager
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetsChatManager.getFormat()
split around placeholders contained in the format.GetsRangedChatManager.getGlobalModeFormat()
split around placeholders contained in the format.static HoverInfoManager
Gets this manager's instance.Gets the click action executed when a player clicks a player's name in the chat.Gets the value applied togetPlayerClickAction()
when a player clicks a player's name in the chat.Gets the map of the hovers displayed when hovering over a player's name in the chat.Gets the list of placeholder types used to translate players' hovers sent in the chat.Gets the color that will be applied to valid URLs sent in the chat.Gets the map of the hovers displayed when hovering over a URL in the chat.boolean
Checks if "https://" should be automatically applied to URLs sent in the chat.boolean
Checks if this manager is enabled.boolean
Checks if info should be displayed when hovering over a player's name in the chat.boolean
Checks if info should be displayed when hovering over a player's rank in the chat.boolean
Checks if text should be displayed when hovering over a URL in the chat.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
-
HoverInfoManager
public HoverInfoManager()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if this manager is enabled.Found at: "chat.hover-info.enabled" in
ConfigurationType.CHAT
- Specified by:
isEnabled
in interfaceChatPluginManager
- Returns:
- Whether this manager is enabled
-
isRankHoverEnabled
public boolean isRankHoverEnabled()Checks if info should be displayed when hovering over a player's rank in the chat.Found at: "chat.hover-info.rank.enabled" in
ConfigurationType.CHAT
- Returns:
- Whether rank hover should be displayed
-
isPlayerHoverEnabled
public boolean isPlayerHoverEnabled()Checks if info should be displayed when hovering over a player's name in the chat.Found at: "chat.hover-info.player.enabled" in
ConfigurationType.CHAT
- Returns:
- Whether player hover should be displayed
-
isURLHoverEnabled
public boolean isURLHoverEnabled()Checks if text should be displayed when hovering over a URL in the chat.Found at: "chat.hover-info.url.enabled" in
ConfigurationType.CHAT
- Returns:
- Whether URL hover should be displayed
-
isDefaultHTTPS
public boolean isDefaultHTTPS()Checks if "https://" should be automatically applied to URLs sent in the chat.Found at: "chat.hover-info.url.default-https" in
ConfigurationType.CHAT
- Returns:
- Whether "https://" should be added to URLs
-
getPlayerClickAction
Gets the click action executed when a player clicks a player's name in the chat.Found at: "chat.hover-info.player.click.action" in
ConfigurationType.CHAT
- Returns:
- Action executed when clicking players' names
-
getPlayerClickValue
Gets the value applied togetPlayerClickAction()
when a player clicks a player's name in the chat.Found at: "chat.hover-info.player.click.value" in
ConfigurationType.CHAT
- Returns:
- Value associated with the action executed on click
-
getURLColor
Gets the color that will be applied to valid URLs sent in the chat.Found at: "chat.hover-info.player.color" in
ConfigurationType.CHAT
- Returns:
- URLs' color
-
getPlayerPlaceholderTypes
Gets the list of placeholder types used to translate players' hovers sent in the chat.Found at: "chat.hover-info.player.placeholder-types" in
ConfigurationType.CHAT
- Returns:
- Placeholders used to translate hovers
-
getPlayerHovers
Gets the map of the hovers displayed when hovering over a player's name in the chat.Found at: "chat.hover-info.player.hovers" in
ConfigurationType.CHAT
- Returns:
- Player hovers
-
getURLHovers
Gets the map of the hovers displayed when hovering over a URL in the chat.Found at: "chat.hover-info.url.hovers" in
ConfigurationType.CHAT
- Returns:
- URL hovers
-
getChatFormat
GetsChatManager.getFormat()
split around placeholders contained in the format.- Returns:
- Chat's format, split up
-
getGlobalChatFormat
GetsRangedChatManager.getGlobalModeFormat()
split around placeholders contained in the format.Will always return an empty list when
!
.RangedChatManager.isEnabled()
|| !RangedChatManager.isGlobalModeEnabled()
- Returns:
- Global chat's format, split up
-
getInstance
Gets this manager's instance.- Returns:
- Manager's instance
-