Class MessageAction
java.lang.Object
io.github.lucfr1746.llibrary.action.Action
io.github.lucfr1746.llibrary.action.list.MessageAction
Represents an action that sends a formatted message to a player.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageAction
(String message) Constructs a MessageAction with the specified message. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.bukkit.entity.Player target) Executes the action, sending the formatted message to the target player.Gets the message that will be sent.
-
Constructor Details
-
MessageAction
Constructs a MessageAction with the specified message.- Parameters:
message
- The message to send to the player.
-
-
Method Details
-
getMessage
Gets the message that will be sent.- Returns:
- The message string.
-
execute
public void execute(org.bukkit.entity.Player target) Executes the action, sending the formatted message to the target player.
-