Upgrading to 4.0
Moving from VoiceSentinel 3.x to 4.0: what the plugin changes in config.yml and messages.yml on its own, and the one thing to check.
You do not need to change anything by hand. On the first start of 4.0 the plugin moves your settings and texts to the new layout. The only thing to check afterwards is any custom message you wrote.
Steps
Your old files are kept
On the first start the plugin saves your 3.x config.yml as config.yml.3x.bak, next to it, and your old messages.yml as config/messages.yml.3x.bak. It never overwrites an existing backup.
Replace the jar
Stop the server, replace the old jar in plugins/ with the 4.0 jar, and start the server. Do not use Plugman or similar to reload it.
Check the console
The console says Config migrated. when the files were changed.
Check your custom messages
Open plugins/VoiceSentinel/config/messages.yml and look over any text you had changed. See What happens to your texts.
What moves
| What | 3.x | 4.0 |
|---|---|---|
| Staff alert settings (processing time, session ID, separator, sound) | alert_settings in messages.yml | alerts block in config.yml |
| Consent menu texts | consent.title, consent.accept_name, consent.deny_name, consent.rules_name, consent.rules and the consent.*_message keys in config.yml | consent-... keys in messages.yml |
| Join privacy notice | privacy-msg in config.yml | privacy-notice in messages.yml |
| Warn text | moderation.warn_message in config.yml | warn in messages.yml |
| Appeal text | moderation.appeal_message in config.yml | appeal-message in messages.yml |
| Message keys | Nested (staff_alerts.flagged_content, player_messages.unmuted) | One level, with dashes (alert-flagged, unmuted) |
| Text format | & colour codes in config.yml, MiniMessage in messages.yml | MiniMessage everywhere |
| Placeholders | <player> | {player} |
| Language of VoiceSentinel's texts | English only | messages_language in config.yml |
privacy-join-msg, consent.mode, consent.on_deny, consent.rules_version and moderation.appeal_url stay in config.yml.
What happens to your texts
messages.ymlis rebuilt from the 4.0 file, so you get the new comments and every new text.- A text you changed is kept under its new key. Texts you never changed take the new 4.0 wording.
- Texts from
config.ymlthat used&colour codes are converted to MiniMessage. - Your old
<player>style placeholders still work. New texts use{player}. - Texts that 4.0 no longer uses are left out.
- Your old file is kept as
config/messages.yml.3x.bak. - If your
privacy-msgwas empty,privacy-join-msgis set tofalseso players still see no notice.
What happens to config.yml
- The moved keys are removed.
messages_language: enis added belowlicense-key.- The
alertsblock is added belowflag_threshold, with the values from your oldmessages.yml. If you had none, it gets the defaults. - Keys that had no comment get the comment from the 4.0 file. Comments you wrote are not touched.
config-versiongoes to 19.messages.ymlgoes to version 4.
Everything else keeps your values. New defaults only apply to new installs.
Nothing else to do
- PUBLIC mode keeps working. The plugin now asks PandaScript which processor to use. See Public processors.
- LOCAL and CUSTOM modes work as before. The On-Server engine is the same version as in 3.11.
- VoiceSentinel Cloud keeps working. 4.0 adds health reports and new remote actions. See VoiceSentinel Cloud.
- Permissions are unchanged.
/voicesentinel statusis new and usesvoicesentinel.admin.
Going back to 3.x
3.x expects the old layout. To go back, put the 3.x jar back, rename config.yml.3x.bak to config.yml, and rename config/messages.yml.3x.bak to messages.yml.
See the 4.0.0 changelog for everything that changed.