Grant standard voice chat through the managed User rank

This commit is contained in:
unimatrixgit 2026-11-30 18:41:31 +01:00
commit 4e8d0bf49e
2 changed files with 108 additions and 1 deletions

View file

@ -330,6 +330,24 @@
"label": "Visit lobby",
"source": "DuneRealms central registered permission catalogue",
"highRisk": false
},
{
"node": "voicechat.listen",
"label": "Listen to nearby voice chat",
"source": "Simple Voice Chat 2.6.25 plugin.yml",
"highRisk": false
},
{
"node": "voicechat.speak",
"label": "Speak in voice chat",
"source": "Simple Voice Chat 2.6.25 plugin.yml",
"highRisk": false
},
{
"node": "voicechat.groups",
"label": "Use voice chat groups",
"source": "Simple Voice Chat 2.6.25 plugin.yml",
"highRisk": false
}
],
"networkAdministratorRoles": [
@ -350,7 +368,10 @@
"duneess.chat.faction": true,
"duneess.chat.nearby": true,
"duneess.chat.network": true,
"duneess.chat.team": true
"duneess.chat.team": true,
"voicechat.listen": true,
"voicechat.speak": true,
"voicechat.groups": true
},
"scope": "network-global; local-only moderation requires a separate server-context design, not this global snapshot"
},

View file

@ -0,0 +1,5 @@
export const USER_VOICE_NODES=Object.freeze(['voicechat.listen','voicechat.speak','voicechat.groups']);
export function voicePermissions(existing){
if(!Array.isArray(existing)||existing.some(n=>typeof n!=='string'))throw Error('Invalid stored User permissions');
return [...new Set([...existing,...USER_VOICE_NODES])];
}