Cuxial Announcements has two commands: one for players and one for staff. Both names can be changed in shared/config.lua.
Commands
| Command | Who | What it does |
|---|---|---|
/anuncio <message> | Players whose job has a style | Sends the message to every player on the server, with the style of the sender's job. |
/crearanuncio | Staff with adminPermission | Opens the panel to create, edit and delete styles. |
<message> is required.
How /anuncio behaves
- The style is chosen by the name of the player's current job. Duty status and grade are not checked: any member of the job can announce.
- If the job has no style, the player gets an error notification and nothing is sent.
- After sending, the player must wait
cooldownseconds (30 by default) before the next announcement. The wait is per player. - Announcements are queued on each player's screen. One is shown at a time, for the duration of its style (
durationmilliseconds if the style sets none), with a short pause before the next.
Keys
The script registers no keys.
Permissions
Opening the panel and saving or deleting styles require the permission set in adminPermission, 'admin' by default. The check runs on the server through Cuxial Bridge, so it follows your framework:
The value is passed to the framework's own permission check. Use a permission that already exists on your server, such as the one your framework uses for its admin commands.
The script adds no ACE permissions of its own, and /anuncio needs none. Access to it depends only on the player's job having a style.
