Class ChatAction

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

public class ChatAction extends Action
Represents an action where a player sends a chat message.
  • Constructor Details

    • ChatAction

      public ChatAction(String message)
      Constructs a ChatAction with the specified message.
      Parameters:
      message - The chat message to be sent by the player.
  • Method Details

    • getMessage

      public String getMessage()
      Gets the chat message.
      Returns:
      The message to be sent.
    • execute

      public void execute(org.bukkit.entity.Player target)
      Executes the chat action, making the player send the predefined message.
      Specified by:
      execute in class Action
      Parameters:
      target - The player who will send the message.