Class MessageAction

java.lang.Object
io.github.lucfr1746.llibrary.action.Action
io.github.lucfr1746.llibrary.action.list.MessageAction

public class MessageAction extends Action
Represents an action that sends a formatted message to a player.
  • Constructor Details

    • MessageAction

      public MessageAction(String message)
      Constructs a MessageAction with the specified message.
      Parameters:
      message - The message to send to the player.
  • Method Details

    • getMessage

      public String 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.
      Specified by:
      execute in class Action
      Parameters:
      target - The player who will receive the message.