Class MiniMessageAction

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

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

    • MiniMessageAction

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

    • getMessage

      public String getMessage()
      Gets the MiniMessage-formatted message.
      Returns:
      The message string.
    • execute

      public void execute(org.bukkit.entity.Player target)
      Executes the action, sending the MiniMessage-formatted message to the target player. If PlaceholderAPI is enabled, placeholders will be replaced before sending.
      Specified by:
      execute in class Action
      Parameters:
      target - The player who will receive the message.