Package fr.maxlego08.menu.api.utils
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 TypeMethodDescriptionnet.md_5.bungee.api.chat.ClickEvent.ActionReturns the action that will be performed on the clickgetHover()getLink()Returns the value to be used for the clickReturns the message that will be displayedReturns the value that will be replacedbooleanisValid()Allows to know if the object is validvoidAllows 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
- Returns:
- list of string
-
send
Allows you to send messages to a player- Parameters:
player- The playersstrings- list of messages
-
isValid
boolean isValid()Allows to know if the object is valid- Returns:
- boolean
-