Name | Announce |
Syntax | announce [<text>] (to_ops/to_console/to_flagged:<flag_name>/to_permission:<node>) (format:<script>) |
Short Description | Announces a message for everyone online to read. |
Full Description | Announce sends a raw message to players.
Simply using announce with text will send the message to all online players using the Spigot broadcast system. Specifying the 'to_ops' argument will narrow down the players in which the message is sent to ops only. Alternatively, using the 'to_permission' argument will send the message to only players that have the specified permission node. Or, using the 'to_flagged' argument will send the message to only players that have the specified flag. You can also use the 'to_console' argument to make it so it only shows in the server console. Announce can also utilize a format script with the 'format' argument. See Format Script Containers. Note that the default announce mode (that shows for all players) relies on the Spigot broadcast system, which requires the permission "bukkit.broadcast.user" to see broadcasts. |
Related Tags | None
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | server |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/server/AnnounceCommand.java#L27 |