Class BroadcastAction
java.lang.Object
io.github.lucfr1746.llibrary.action.Action
io.github.lucfr1746.llibrary.action.list.BroadcastAction
Represents an action that broadcasts a formatted message to all online players.
-
Constructor Summary
ConstructorsConstructorDescriptionBroadcastAction
(String message) Constructs a BroadcastAction with the specified message. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.bukkit.entity.Player target) Executes the broadcast action, sending the formatted message to all online players.Gets the broadcast message.
-
Constructor Details
-
BroadcastAction
Constructs a BroadcastAction with the specified message.- Parameters:
message
- The message to broadcast.
-
-
Method Details
-
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.
-