Class HoverMessageUtil

java.lang.Object
me.github.simonplays15.betterbansystem.core.chat.HoverMessageUtil

public class HoverMessageUtil extends Object
The type Hover message util.
  • 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 to
      message - the main message to be displayed
      hoverMessage - 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 to
      components - 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 to
      component - 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 to
      component - the text component to send
    • buildHoverableMessage

      @Deprecated public static net.md_5.bungee.api.chat.BaseComponent[] buildHoverableMessage (String message, String hoverMessage)
      Deprecated.
      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.