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. Canopy Sheep submitted a new resource:

    Staffmode - Toggle on/off staff mode

    Read more about this resource...
     
  2. Canopy Sheep updated Staffmode with a new update entry:

    1.0.1

     
  3. So will this work like Admin Toggle? Does it force disconnect when you toggle admin on/off?
     
  4. Code:
    If DisconnectOnToggle is false,If the AuthLevel value is set to 1 or 2, the player will be given the "IsAdmin" flag, which does not give access to all available Rust console commands (i.e status, any "ent" command, ect). There is no better way to do this without requiring a disconnect.The flag will not be set if the "AuthLevel" setting is 0.
    It's covered in the overview ;)
     
  5. There's a config setting for it. Almost identical to Admin Toggle, but there's no name change.
     
  6. Sorry fellas... high on meds right now (strep throat) XD

    How about the logout/in after setting yourself to a normal player?
     
  7. Those must be good meds... you just asked the same question lol
     
  8. It works the same way... lol..

    Take care with those meds.. they seem.. intense..
     
  9. Wow, thanks for this plugin.

    Maybe this can combat the "admin abuse" accusations on the server.
     
  10. Literally cracking up reading this again. Coherent this time :D
     
  11. Can't seem to get this working correctly. I have the plugin announce and force disconnect, however when I come back in as player, I can still spawn items from the F1 list, even though noclip is disabled. I still seem be in a auth lvl 1 or 2 because better chat also does not remove my admin tags on my name. Here is my config and group files. Any help would be appreciated.
     

    Attached Files:

  12. Check if you accidentally made a case error with your groups, default should be fine however.
    [DOUBLEPOST=1484528908][/DOUBLEPOST]As in you put "owner," check to see if the group is actually "Owner." Groups are case sensitive.
     
  13. oh. I will go check the oxide groups now. I actually dont see a group called owner. only admin and moderator. Maybe i need to change the owner to admin. I will try that.
     
  14. Wulf

    Wulf Community Admin

    I'd probably ToLower() checks like that.
     
  15. Perfect that worked. Changing from owner to admin fixed the issue. I can now switch between player and admin mode correctly. Thanks for the help.
    [DOUBLEPOST=1484531266][/DOUBLEPOST]The problem was that I was using a non oxide group. When I checked the oxide.groups.data there was no owner group. I had admin, default, moderator, and a few others. Once i changed on duty group from owner to admin the plugin started working correctly.
     
  16. What permission do I give to users to allow them to use the staffmode command?
     
  17. Grant the "PermissionNode" in the group data file, if there isn't one, anyone will be able to toggle with that group. In the snippet below, the permission would be "staffmode.mod"
    Code:
      "Groups": {
        "Mod": {
          "GroupName": "Mod",
          "AuthLevel": 1,
          "OffDutyGroup": "Modoffduty",
          "OnDutyGroup": "Mod",
          "PermissionNode": "staffmode.mod"
        },
     
  18. How can I put people in to the groups?
     
  19. All you have to do is grant the user (or oxide group) the permission and they're all set to toggle. The group name is just to add some organization and output any errors.
     
  20. When I try to give my self permission is says it doesn't exist