Messages and translations
Every text VoiceSentinel shows players and staff: the MiniMessage format, {placeholders}, the 7 built-in languages and how to edit them.
Every text VoiceSentinel shows in chat, menus, the consent screen and staff alerts is in a messages file in plugins/VoiceSentinel/config/. config.yml holds settings only. This applies from 4.0.
Pick a language
Set messages_language in config.yml, then run /voicesentinel reload.
# Language of chat, menu and consent texts: en, es, de, fr, pt_BR, nl or pl.
messages_language: en| Code | Language | File |
|---|---|---|
en | English | messages.yml |
es | Spanish | messages_es.yml |
de | German | messages_de.yml |
fr | French | messages_fr.yml |
pt_BR | Brazilian Portuguese | messages_pt_BR.yml |
nl | Dutch | messages_nl.yml |
pl | Polish | messages_pl.yml |
- Case does not matter, and
pt-BRorptalso meanpt_BR. - An unknown code falls back to English. The console lists the codes you can use.
- The file for a language is created the first time you pick it.
messages_language is the language of VoiceSentinel's own texts. The languages your players speak, used for the word lists, are set under languages: in config.yml. See Word lists.
Edit a text
- Open the file for your language in
plugins/VoiceSentinel/config/. - Change the text after the key. Keep the key name as it is.
- Run
/voicesentinel reload.
Each language has its own file. If you edit messages.yml and then switch to de, your edits are not copied to messages_de.yml. Make them there too.
If you delete a key, VoiceSentinel uses the built-in text for that language, then the English one. If the file has a YAML error, the console says so and the built-in texts are used until you fix it and reload.
Format
Texts use MiniMessage. & colour codes are not supported.
prefix: "<gradient:#4A90E2:#4CC9F0><bold>VoiceSentinel</bold></gradient> <gray>></gray>"
warn: "<red>Please keep voice chat respectful.</red>"
voice-muted-auto: "<red>You have been voice muted for {duration}. Reason: {words}.</red>"Common tags: <red>, <green>, <gray>, <bold>, <underlined>, <#4A90E2> for any colour, and <gradient:#4A90E2:#4CC9F0>.
A text that spans several lines uses a YAML block:
privacy-notice: |-
<aqua><bold>Voice chat notice</bold></aqua>
<gray>This server moderates voice chat with VoiceSentinel.</gray>consent-rules is a list, one line per item.
Placeholders
Values in braces, such as {player}, {duration} or {words}, are filled in by the plugin. Keep them when you edit a text. Each text only knows the placeholders it already has.
Values are added as plain text, so a player name, reason or transcript cannot change the formatting.
Texts carried over from 3.x may still use the old <player> style. Both forms work.
With placeholder_api.enabled: true in config.yml, PlaceholderAPI placeholders such as %player_displayname% also work in texts sent to players. See Placeholders.
What is in the file
The file has a comment above each group. The main groups:
| Keys | Used for |
|---|---|
prefix, separator | Start of every chat line, and the line between alerts |
alert-... | Staff alerts. Which lines show is set under alerts: in config.yml |
privacy-notice, consent-... | Join notice and consent menu |
warn, appeal-message, appeal-link, unmuted, voice-muted-... | Messages to players |
mute-..., pardon-..., history-..., mutes-... | Mute commands and the mute indicator |
status-... | /voicesentinel status |
vs-..., test-..., stats-..., license-... | Other /voicesentinel replies |
report-..., viewreport-..., report-inbox-... | Voice reports |
web-user-... | /voicesentinel webuser |
discord-test-... | /voicesentinel discordtest |
Do not edit config-version at the bottom of the file.
Upgrading from 3.x
On the first start of 4.0, your 3.x texts are moved into the new file and your edits are kept. See Upgrading to 4.0.
Configuration
Plugin config.yml: license, message language, processor mode (PUBLIC/LOCAL/CUSTOM), staff alerts, consent, moderation, mute ladder, audio capture and live detection, storage, Cloud, voice reports, web dashboard, Discord, telemetry and languages.
Moderation and escalation
How VoiceSentinel decides what to do with a flagged word: tiers, escalation steps, strike window, unconfirmed hits, network strikes, the mute ladder and the appeal message.