Staffmode

Toggle on/off staff mode

Total Downloads: 1,247 - First Release: Jan 12, 2017 - Last Update: Jun 27, 2017

5/5, 3 likes
  1. The groups should only be used if you have Oxide permission groups setup, and the permission allows for the person to toggle.
    Code:
    {
      "Groups": {
      "Admin": {
      "GroupName": "Admin",
      "AuthLevel": 2,
      "OffDutyGroup": null,
      "OnDutyGroup": null,
      "PermissionNode": "staffmode.admin"
      }
    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:
    grant user "Canopy Sheep" 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.
     
  2. 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"
    }
    }
    }
     
  3. Are you editing the data file directly?
     
  4. 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 !
     
  5. The AuthLevel setting has to correspond correctly to what you already have. If this is your full data file, changing AuthLevel to 2 should solve your issue. OffDutyGroup and OnDutyGroup are Oxide permission groups, and won't change your authlevel.
     
  6. Authlevel = 1 Because this mode is for my moderator

    I test for me with authLevel = 2 doesn't work for me
     
  7. Do you have a second group for you or are you using the one you pasted above?
     
  8. I use Group Admin:

    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"
        }
      }
    }
     
  9. Everything seems to check out visually. Try enabling "dev" in the config (won't disconnect you but will show messages), then toggle and check console/logs for the "removed owner" message. Let me know of your outcome and we can proceed from there.
     
  10. Ok I test this later, I go to my job ^^

    I'll be back at 17h (is it 8h at home)

    Cya and thanks !
     
  11. Ok so, I do some test. I successfuly granted permission for moderator to be player.
    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 ? :(
     
  12. When they toggle again, they should be readded to auth level 1. Have you had them toggle multiple times or just once?
     
  13. 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
     
  14. The plugin should readd them to their authlevel once they toggle back into their on duty group. Try retoggling, after the first time it should start to go back and forth. Usually it puts the staff member in player mode twice if their Steam ID is newly added to the data file.
     
  15. Thanks for your quick reply again ^^

    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
     
  16. Try it twice yes. See if that works.
     
  17. With disconnect set to true or false ?

    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
  18. The permission groups? Unless you created another group called "owner," it wouldn't exist. I do believe the default is "admin."
     

  19. 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"
        },  }
    }
     
  20. Granting staffmode.admin should be the solution. I'd also double check with the console command "checkgroups" to get additional information. If nothing comes back, let me know and we can troubleshoot from there.