Skip to content

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.

/annonces
/annonces apercu <announcement>
/annonces envoyer <announcement> [tous | monde <world> | zone <zone> | joueur <player>]
/annonces rotation <rotation> on | off | maintenant
/annonces reload

An unknown or incomplete subcommand shows the syntax reminder.

Opens the in-game menu. Players only: from the console, the plugin replies that the menu opens in game.

Preview. Sends the announcement to you only, exactly as players would receive it (frame, centering, placeholders resolved for you, sound). Players only.

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.

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.

5 results

  • /annonces [envoyer|apercu|rotation|reload]Aliases /annoncePermission cobaltia.annonces.admin

    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>]Permission cobaltia.annonces.admin

    Sends an announcement right away: to everyone (default), a world, a zone or a player. With monde and no name, your current world is targeted. The number of players reached is confirmed.

  • /annonces apercu <annonce>Permission cobaltia.annonces.admin

    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>Permission cobaltia.annonces.admin

    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 reloadPermission cobaltia.annonces.admin

    Rereads annonces.json after a change. On error, the previous configuration stays in place and the errors are shown in chat and in the console.