Solved Question about ParentGroup

Discussion in 'Rust Discussion' started by Alphawar, Oct 10, 2015.

  1. Hi there, I feel silly asking this question but can not find any confirmation anywhere, It is regarding the use of ParentGroup.
    I know for example that if you have two groups eg admin and hidden and hidden hides your status you can set its parent to admin to get the same perms BUT what I want to confirm is if this can chain.
    eg if most admin perms are in moderator can admin parent to Mod and then Head mod parent to admin...
    so like this: Hidden >> Owner >> Head Admin >> Admin >> Moderator >> player

    If you can do this what is the command to add parents???
    Thanks

    Here is a snippet of my permissions file
    Code:
      "hidden": {
        "Title": "player",
        "Rank": 0,
        "Perms": [
          "color_hidden"
        ],
        "ParentGroup": null
      },
      "owner": {
        "Title": "Owner",
        "Rank": 0,
        "Perms": [
          "color_owner",
          "rename.players"
        ],
        "ParentGroup": null
      },
      "headadmin": {
        "Title": "Head Admin",
        "Rank": 1,
        "Perms": [
          "color_head",
          "caninvwipe",
          "sil_owner",
          "isticketsadmin",
          "zone",
          "canbuild",
          "candeploy",
          "crosshair.use"
        ],
        "ParentGroup": null
      },
      "admin": {
        "Title": "Admin",
        "Rank": 2,
        "Perms": [
          "color_admin",
          "canusegodmode",
          "cancontrollanterns",
          "canban",
          "canbancheck",
          "dayvote.admin",
          "canremoveall",
          "canremovetarget",
          "canremoveadmin",
          "strikes.use",
          "sil_cd",
          "canjail",
          "chat.globalmute"
        ],
        "ParentGroup": null
      },
      "moderator": {
        "Title": "Moderator",
        "Rank": 3,
        "Perms": [
          "color_mod",
          "cannotice",
          "cankick",
          "chat.notglobalmuted",
          "chat.mute",
          "adminchat.use"
        ],
        "ParentGroup": null
      },
    
     
  2. Wulf

    Wulf Community Admin

    What you want isn't really realistic, there's no reason to create a loop between groups. Admin should have more permissions than what moderators have, moderators shouldn't be inheriting from admins. If you want admin to inherit from moderators though (as they should), you can use the command "group parent admin moderator" in your RCON or console as owner.

    group <parent> <name> <parentName>
     
  3. Yes this is what I want, but what I want to confirm is can I do a chain like this:
    If I was to do that would Owner then have the perms from regular our would it just stop at the first one (Head admin).
     
  4. Wulf

    Wulf Community Admin

    Yes, that should work.
     
  5. Awesome thank you so much, you have saved me alot of work having to add people to all the groups :)
    have a good day/night depending on where you are.

    Cheers :)