forked from unimatrix/web
Grant standard voice chat through the managed User rank
This commit is contained in:
parent
507191ba3a
commit
4e8d0bf49e
2 changed files with 108 additions and 1 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
5
website/node/user-voice-permissions.mjs
Normal file
5
website/node/user-voice-permissions.mjs
Normal 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])];
|
||||
}
|
||||
Loading…
Reference in a new issue

Staff