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