Should be possible to grant/revoke multiple permissions at once using oxide.<grant/revoke> <user/group> <name/id> <perm1>, [perm2], [perm3] , ...
Grant/revoke multiple permissions at onceSuggestion
looks as good idea, all that needed is check all args
Did this ever happen?
I'm also looking for a solution that would allow granting multiple permissions at once.
I'm also looking for a solution that would allow granting multiple permissions at once.
Nova55645Did this ever happen?
I'm also looking for a solution that would allow granting multiple permissions at once.
No, but you can use wildcards. See Permissions
I've tried using wilcards but I grant perms individually, and when I try to use the wildcard method to revoke, it doesn't work for me.
For instance, I oxide.grant group default nteleportation.home, nteleportation.deletehome, neteleportation.tpr, and nteleportation.wipehomes individually rather than with a wildcard. So now I want to use "oxide.revoke group default nteleportation.*" to revoke all those permissions but it won't do it because according to the output, "Group 'default' does not have permission 'nteleportation.*' ".
Is there a way to make that work?
It would also be cool to be able to add /remove multiple permissions using:
oxide.grant group default nteleportation.home, backpacks.use, backpacks.use.7, etc.etc
It's not really a big deal, but it'd save a couple of minutes of having to remove each one individually when players want to change them.
For instance, I oxide.grant group default nteleportation.home, nteleportation.deletehome, neteleportation.tpr, and nteleportation.wipehomes individually rather than with a wildcard. So now I want to use "oxide.revoke group default nteleportation.*" to revoke all those permissions but it won't do it because according to the output, "Group 'default' does not have permission 'nteleportation.*' ".
Is there a way to make that work?
It would also be cool to be able to add /remove multiple permissions using:
oxide.grant group default nteleportation.home, backpacks.use, backpacks.use.7, etc.etc
It's not really a big deal, but it'd save a couple of minutes of having to remove each one individually when players want to change them.
Right now no, not without a plugin being made to do so; however, core commands will be overhauled a bit for uMod (not Oxide) and will be available with features such as this.
Good to know. I'll keep an eye out for updates. Thanks much.
I accidentally granted my admin group every permission. I want to revoke all perms from the admin group, but oxide.revoke group admin * doesn't work. Any other solution?
I'd remove the group and recreate it. There isn't a native command to revoke all permissions at the moment.markman641I accidentally granted my admin group every permission. I want to revoke all perms from the admin group, but oxide.revoke group admin * doesn't work. Any other solution?