The groups should only be used if you have Oxide permission groups setup, and the permission allows for the person to toggle.
You only need one group for your admin, not two (for offduty and onduty). The Authlevel listed will be granted/revoked depending on if the admin is toggling off or on. If you have permission groups setup (see Using the Oxide permission system | Oxide), you will want to put your groups in the corresponding places, "Admin" in the OnDutyGroup and "OffDuty" in the other. If you're not using permission groups and don't desire to, leave the values null. To give access to the command to another person, you must grant that person (or group if you are using them) the permission node. For example:Code:{ "Groups": { "Admin": { "GroupName": "Admin", "AuthLevel": 2, "OffDutyGroup": null, "OnDutyGroup": null, "PermissionNode": "staffmode.admin" }
If I were connected, I would be granted this permission when this command is typed into console. Setting the permission node value to null will allow everyone connected to toggle as they please. It's slightly difficult to understand, so let me know if you need any more assistance with this.Code:grant user "Canopy Sheep" staffmode.admin
Staffmode
Toggle on/off staff mode
Total Downloads: 1,247 - First Release: Jan 12, 2017 - Last Update: Jun 27, 2017
- 5/5, 3 likes
-
I am having trouble getting this setup but I am getting: No groups have been configured properly:
{
"Groups": {
"Admin_on": {
"GroupName": "Admin_on",
"AuthLevel": 1,
"OffDutyGroup": "default",
"OnDutyGroup": "admin",
"PermissionNode": "staffmode.admin"
}
}
} -
-
Hi,
How to work this plugin ?
I have some troubles with it, when i use /staffmode and reconnect i am always owner with noclip, godmode ...
My data file:
{
"Groups": {
"Modo": {
"GroupName": "modo",
"AuthLevel": 1,
"OffDutyGroup": "default",
"OnDutyGroup": "moderator",
"PermissionNode": "staffmode.modo"
}
}
}
I test with Authlevel 2 for OnDutyGroup = owner and doesn't work
And it's possible, if it's work, add a second group ? One for moderator and an other for owner ?
Thanks !
I think if it work, it's a great work man ! -
-
I test for me with authLevel = 2 doesn't work for me -
-
Code:{ "Groups": { "Modo": { "GroupName": "modo", "AuthLevel": 1, "OffDutyGroup": "default", "OnDutyGroup": "moderator", "PermissionNode": "staffmode.modo" }, "Admin": { "GroupName": "admin", "AuthLevel": 2, "OffDutyGroup": "default", "OnDutyGroup": "owner", "PermissionNode": "staffmode.admin" } } }
-
-
I'll be back at 17h (is it 8h at home)
Cya and thanks ! -
Problem: When they are default group and want to be moderator because a player need help:
I need to give them the perms staffmode.xxx to default groups
When they used /staffmode, console return isn't moderator and they are again players
How they can back to authlevel 1 ? -
-
Just once.
So i need to readd them each times they toggle ?
If I set disconnect on toggle to false, I doesn't need to add them again maybe I use this plugin like that
Is there a little problem but np: One moderator can give with console but can't fly xD -
-
Plugin doesn't readded them to moderator if I don't use moderator id 'steamid' first they are always on default group. If they retoggling, console say they aren't authlevel 1 and they return to player mode.
You said they need to do the command twice ?
Sorry, i'm FR so i need to understand exactly xD -
-
EDIT: Was banned for my own server because cheat detected ? :O
It's ok when I set disconnect on toggle to true.
I think, the problem is about different group, when I tried (owner) to use /staffmode I see isn't moderator.
I only have the permission about admin not moderator..Last edited by a moderator: Aug 10, 2017 -
-
Yea but my server is old like one year ago and my group was owner so i used this group xD
I created 2 perms:
- 1 for moderator to play like a player
-1 for me to test like a player
I can't use the second for me, it used automatically moderator group and I revoked staffmode.modo
Code:{ "Groups": { "Modo": { "GroupName": "modo", "AuthLevel": 1, "OffDutyGroup": "default", "OnDutyGroup": "moderator", "PermissionNode": "staffmode.modo" }, "Admin": { "GroupName": "admin", "AuthLevel": 2, "OffDutyGroup": "default", "OnDutyGroup": "owner", "PermissionNode": "staffmode.admin" }, } }
-