Commands
CobaltiaAnnonces provides a single command, /annonces (alias /annonce). All its subcommands require the cobaltia.annonces.admin permission. Tab completion suggests subcommands, announcement and rotation ids, worlds, zones and online players.
Overview
Section titled “Overview”/annonces/annonces apercu <announcement>/annonces envoyer <announcement> [tous | monde <world> | zone <zone> | joueur <player>]/annonces rotation <rotation> on | off | maintenant/annonces reloadAn unknown or incomplete subcommand shows the syntax reminder.
Subcommands
Section titled “Subcommands”/annonces
Section titled “/annonces”Opens the in-game menu. Players only: from the console, the plugin replies that the menu opens in game.
/annonces apercu <announcement>
Section titled “/annonces apercu <announcement>”Preview. Sends the announcement to you only, exactly as players would receive it (frame, centering, placeholders resolved for you, sound). Players only.
/annonces envoyer <announcement> [target]
Section titled “/annonces envoyer <announcement> [target]”Send. Sends the announcement immediately. The target is optional:
| Target | Recipients |
|---|---|
(none) or tous |
All online players. |
monde <world> |
Players in the given world. In game, without a world name, your current world is used. |
zone <zone> |
Players inside the zone (id defined under zones). |
joueur <player> |
One online player, by exact name. |
The plugin confirms how many players were reached. If the target is empty, nothing is sent and a warning says so. Every send is logged to the console (author, announcement, target, player count).
/annonces rotation <rotation> on | off | maintenant
Section titled “/annonces rotation <rotation> on | off | maintenant”| Action | Effect |
|---|---|
on |
Turns the rotation on. If it was off, the countdown restarts from a full interval. The delay before the next send is shown. |
off |
Turns the rotation off: it no longer sends automatically. |
maintenant |
Now. Immediately sends the rotation’s next announcement to its target and restarts its countdown. Also works on a rotation that is off. |
The on/off state is saved immediately and kept across reloads and restarts. Every toggle is logged to the console.
/annonces reload
Section titled “/annonces reload”Re-reads annonces.json. On success, the plugin shows the number of announcements, zones, rotations and entries. On error, the previous configuration stays in place: the first ten errors are shown in chat and the full list in the console.
Reference
Section titled “Reference”5 results
/annonces [envoyer|apercu|rotation|reload]Opens the CobaltiaAnnonces in-game menu to preview, send and manage announcements and rotations. The subcommands below do the same by command.
/annonces envoyer <annonce> <tous|monde|zone|joueur> [<cible>]Sends an announcement right away: to everyone (default), a world, a zone or a player. With
mondeand no name, your current world is targeted. The number of players reached is confirmed./annonces apercu <annonce>Sends an announcement to you only, exactly as players will receive it (frame, centering, placeholders, sound), so you can check it before sending.
/annonces rotation <rotation> <on|off|maintenant>Turns an automatic announcement rotation on (
on) or off (off), or broadcasts its next announcement right away (maintenant). The state is kept across restarts./annonces reloadRereads annonces.json after a change. On error, the previous configuration stays in place and the errors are shown in chat and in the console.
- No entries.