Class HoverMessageUtil
java.lang.Object
me.github.simonplays15.betterbansystem.core.chat.HoverMessageUtil
The type Hover message util.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.md_5.bungee.api.chat.BaseComponent[]buildHoverableMessage(String message, String hoverMessage) Deprecated.This method is deprecated.static voidsendHoverableMessage(Object player, String message, String hoverMessage) Deprecated.This method is deprecated and should not be used.static voidsendHoverableMessage(Object player, net.md_5.bungee.api.chat.BaseComponent[] components) Sends a hoverable message to a player.static voidsendHoverableMessage(Object player, net.md_5.bungee.api.chat.TextComponent component) Sends a hoverable message to a player.static voidsendHoverableMessage(Object player, net.md_5.bungee.api.chat.TextComponent... component) Sends a hoverable message to a player or proxied player.
-
Constructor Details
-
HoverMessageUtil
public HoverMessageUtil()
-
-
Method Details
-
sendHoverableMessage
@Deprecated public static void sendHoverableMessage(Object player, String message, String hoverMessage) Deprecated.This method is deprecated and should not be used. Use the overloaded methods instead.Sends a hoverable message to the specified player.- Parameters:
player- the player to send the message tomessage- the main message to be displayedhoverMessage- the message to be displayed when hovering over the main message
-
sendHoverableMessage
public static void sendHoverableMessage(Object player, net.md_5.bungee.api.chat.BaseComponent[] components) Sends a hoverable message to a player.- Parameters:
player- the player to send the message tocomponents- the components of the message
-
sendHoverableMessage
public static void sendHoverableMessage(Object player, net.md_5.bungee.api.chat.TextComponent... component) Sends a hoverable message to a player or proxied player.- Parameters:
player- the player or proxied player to send the message tocomponent- the text components to send as the message
-
sendHoverableMessage
public static void sendHoverableMessage(Object player, net.md_5.bungee.api.chat.TextComponent component) Sends a hoverable message to a player.- Parameters:
player- the player to send the message tocomponent- the text component to send
-
buildHoverableMessage
@Deprecated public static net.md_5.bungee.api.chat.BaseComponent[] buildHoverableMessage(String message, String hoverMessage) Deprecated.This method is deprecated. UsesendHoverableMessage(java.lang.Object, java.lang.String, java.lang.String)instead.Builds a hoverable message with the specified message and hover text.- Parameters:
message- The main message to display.hoverMessage- The hover text to display when the message is hovered.- Returns:
- The hoverable message as an array of BaseComponents.
-