Create your first announcement
This guide creates a framed “Shop” announcement, tests it, then schedules it every 15 minutes for players in the survie world.
-
Open
plugins/CobaltiaAnnonces/annonces.json.Every section is optional. If you start from the sample file, keep the
titreandcadresblocks: they provide thesimpleframe used below. -
Add the announcement under
annonces.The key (
boutique) is the id used by commands and rotations. Thenom(name) is only shown in the menu and in confirmations."annonces": {"boutique": {"nom": "Shop","cadre": "simple","lignes": ["<gray>Check out what's new in the shop!","","<click:run_command:'/boutique'><hover:show_text:'<gray>Open'><white><u>/boutique</u></white></hover></click>"],"son": "entity.experience_orb.pickup"}}The empty string
""inserts a blank line. The frame title is added automatically; add"titre": falseto hide it. -
Reload the file.
/annonces reloadOn success, the plugin shows how many announcements, zones, rotations and entries were loaded. On error, the previous configuration stays active and each error is reported with its path, for example
annonces.boutique.cadre : cadre inconnu « simpel ». -
Preview it for yourself only.
/annonces apercu boutiqueYou can also open
/annoncesand right-click the announcement. -
Send it manually.
/annonces envoyer boutique tous/annonces envoyer boutique monde survie/annonces envoyer boutique joueur SteveOpen
/annonces, left-click the announcement, then pick Tout le serveur (whole server), Mon monde (my world), Une zone… (a zone) or Moi seulement (only me). -
Schedule it with a rotation.
Add an item to the
rotationslist:"rotations": [{"id": "survie","toutes": "15m","ordre": "suite","annonces": ["boutique"],"cible": { "monde": "survie" },"actif": true}]Reload with
/annonces reload. The first send happens 15 minutes after loading. -
Control the rotation.
/annonces rotation survie maintenant/annonces rotation survie off/annonces rotation survie onmaintenant(now) sends the next announcement right away and restarts the countdown.onandoffturn the rotation on or off; that state is saved and survives restarts.