Manage Roles and Permissions
configs/plugins/DU_ManageRolesAndPermissions/DU_ManageRolesAndPermissions.json
You can use this for example for VIP or Admin players, when they join they get a permission or role according to your settings. It's not limited to just 2x Roles To Permission or Permission To Roles, you can add any other values you need. The default config contains only two sample configurations.
Examples:
{
"Remove Roles On Permission Loss": false, // If a player joins and doesn't have a certain Permission from Permission To Role, and if they don't have that role, it will be automatically removed
"Remove Permissions On Role Loss" : false, // This means that if a player is removed from a role and is connected on the server, a permissions from that role will be removed immediately
"Role To Permission": {
"123456789": {
"flags": [
"@css/kick",
"@css/ban"
],
"immunity": 100,
"command_overrides": {
"css_respawn": true
}
},
"987654321": {
"flags": [
"@css/ban",
"@css/kick"
],
"immunity": 90,
"command_overrides": {
"css_slay": true
}
}
},
"Permission To Role": {
"Flag or Group": "ROLE ID",
"@css/vip_flag": "321654987", // PLAYERS WILL GET ROLE ON THE DISCORD SERVER: 321654987 IF THEY HAVE FLAG @css/vip_flag
"#css/admin": "789456123" // PLAYERS WILL GET ROLE ON THE DISCORD SERVER: 789456123IF IF THEY HAVE GROUP #css/admin
//and more...
},
"ConfigVersion": 1
}
Some information about flags: https://docs.cssharp.dev/docs/admin-framework/defining-admin-groups.html
CAUTION • Your Discord BOT role must always be above your Managed Role! Otherwise roles will not be added. • Only CSS permissions work, you can't use flags or groups from metamod plugins

Last updated