Class BroadcastAction

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

public class BroadcastAction extends Action
Represents an action that broadcasts a formatted message to all online players.
  • Constructor Details

    • BroadcastAction

      public BroadcastAction(String message)
      Constructs a BroadcastAction with the specified message.
      Parameters:
      message - The message to broadcast.
  • Method Details

    • getMessage

      public String getMessage()
      Gets the broadcast message.
      Returns:
      The message being broadcasted.
    • execute

      public void execute(org.bukkit.entity.Player target)
      Executes the broadcast action, sending the formatted message to all online players.
      Specified by:
      execute in class Action
      Parameters:
      target - The player triggering the action (not directly used in this implementation).