Interface OpenLink


public interface OpenLink

Sends a message and opens a link.

For servers that are in 1.17+ it is advisable to use the MiniMessage format

  • Method Summary

    Modifier and Type
    Method
    Description
    net.md_5.bungee.api.chat.ClickEvent.Action
    Returns the action that will be performed on the click
     
    Returns the value to be used for the click
    Returns the message that will be displayed
    Returns the value that will be replaced
    boolean
    Allows to know if the object is valid
    void
    send(org.bukkit.entity.Player player, List<String> strings)
    Allows you to send messages to a player
  • Method Details

    • getAction

      net.md_5.bungee.api.chat.ClickEvent.Action getAction()
      Returns the action that will be performed on the click
      Returns:
      action
    • getMessage

      String getMessage()
      Returns the message that will be displayed
      Returns:
      message
    • getLink

      String getLink()
      Returns the value to be used for the click
      Returns:
      string
    • getReplace

      String getReplace()
      Returns the value that will be replaced
      Returns:
      replace
    • getHover

      List<String> getHover()
      Returns:
      list of string
    • send

      void send(org.bukkit.entity.Player player, List<String> strings)
      Allows you to send messages to a player
      Parameters:
      player - The players
      strings - list of messages
    • isValid

      boolean isValid()
      Allows to know if the object is valid
      Returns:
      boolean