Need help with Permissions' Inheritance

Discussion in 'Plugin Development' started by Dragonntiger, May 1, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Dragonntiger

    K, so i got the ranks down and i just need help with the inheritance because ingame, my friends can't do anything... errr, for example lets say : guest, player, builder, semi-admin, and admin are my ranks.
    Question1: Will inheritance also inherit others inheritance? Lol
    so player inherits guest, builder inherits from player, so on so forth
    does this mean that builder inherits what player inherits too? :confused:

    Question2: If all inherit from the lowest, do they get all other permissions?
    So, player inherits from guest, builder inherits from guest, so on, so forth
    Does this mean builder gets player's permissions as well or :confused:?
     
  2. Offline

    Deathly

    First of all, Inherintances i herit other Inheritances.

    Second, if all inherit from the lowest they will only get the permissions of the lowest and their specific ones, not these of the others that inherit from the lowest.

    @Dragonntiger

    Sorry I wont work with that pseudo shit. Either give me the real Permissions setup, or do it yourself.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  3. Offline

    Dragonntiger

    plugin:

    permissions:
    system: default
    copies: null
    groups:


    Guest:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: null
    permissions:
    - essentials.spawn
    - essentials.help
    - mywarp.warp.*
    - essentials.rules
    - essentials.motd
    - essentials.afk
    - essentials.me
    - essentials.list

    VIP:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Guest
    permissions:
    - AutoRepair.access
    - AutoRepair.repair
    - essentials.home
    - essentials.sethome
    - essentials.compass
    - essentials.jump
    - essentials.back.*
    - essentials.msg
    - essentials.mail.*
    - craftbook.*

    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - VIP
    permissions:
    - essentials.time
    - essentials.item

    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - essentials.tp
    - essentials.tpahere
    - '*'

    Skrillex:
    default: false
    info:
    prefix: '&3'
    suffix: '&4'
    build: true
    inheritance: null
    permissions:
    - '*'

    Cpt:
    default: false
    info:
    prefix: '&8'
    suffix: '&9'
    build: true
    inheritance: null
    permissions:
    - '*'

    users:
    Mynameisskrillex:
    group: Skrillex
    permissions: null

    scpo:
    group: VIP
    permissions: null

    aguyyoudontkno:
    group: Admins
    permissions: null

    iamkewl69:
    group: Cpt
    permissions: null

    so basically scpo gets his commands denied ingame :\ is it something to do with the groups? or the users at the bottom? Also, is the permissions setup in admins correct? i want to add some other permissions that others cant use to admins and i want admins to have all permissions
     
  4. Offline

    -JHB-

    fist of all i think you got to write permission down like this here: ' <permission> '
    if there is no inheritance or permission just leave it blank.
    if you annd the '*' to admin admins are allowed to use ervery command so don't worry about that...
     
  5. Offline

    Dragonntiger

    hey thanks for the admin part, err wen you said i should change it to <permission> , where do you want me to place it? do you have your own setup that you would like to share? :D
     
  6. Offline

    -JHB-

    never mind that was a mistake. I got soemthing wrong. Anyhow here's my config (I use Groupmanager bu it's basicily the same)
    Code:
    groups:
      VIP:
        default: false
        permissions:
        - factions.create
        - simplereserve.enter.kick
        - simplereserve.kick.prevent
        - plugman.list
        - ecoCreature.Rewarding.VIP
        inheritance:
        - player
        info:
          prefix: ''
          build: true
          suffix: ''
      Default:
        default: true
        permissions:
        - essentials.help
        - essentials.helpop
        - essentials.list
        - essentials.rules
        inheritance: []
        info:
          prefix: '&e'
          build: true
          suffix: ''
      Owner:
        default: false
        permissions:
        - '*'
        inheritance:
        - admin
        info:
          prefix: ''
          build: true
          suffix: ''
      Player:
        default: false
        permissions:
        - roles.join
        - roles.myroles
        - roles.whoroles
        - essentials.afk
        - essentials.mail
        - essentials.mail.send
        - essentials.me
        - essentials.msg
        - essentials.list
        - essentials.rules
        - essentials.suicide
        - essentials.whois
        - iConomy.payment
        - iConomy.rank
        - towny.town.claim
        - guestprev.is.authorized
        - guestprev.bypass.walls
        - towny.wild.destroy
        - ecoCreature.Rewarding.Creeper
        - ecoCreature.Rewarding.Skeleton
        - ecoCreature.Rewarding.Zombie
        - ecoCreature.Rewarding.Spider
        - ecoCreature.Rewarding.PigZombie
        - ecoCreature.Rewarding.Ghast
        - ecoCreature.Rewarding.Slime
        - ecoCreature.Rewarding.Giant
        - ecoCreature.Rewarding.Chicken
        - ecoCreature.Rewarding.Cow
        - ecoCreature.Rewarding.Pig
        - ecoCreature.Rewarding.Sheep
        - ecoCreature.Rewarding.Squid
        - ecoCreature.Rewarding.Spawner
        inheritance:
        - default
        info:
          prefix: ''
          build: true
          suffix: ''
      Tavernholder:
        default: false
        permissions:
        - -Profession.land
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Lumberjack:
        default: false
        permissions:
        - -Profession.wood
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - nocheat.moving
        - essentials.ban
        - essentials.banip
        - simplereserve.enter.kick
        - guestprev.is.admin
        inheritance:
        - moderator
        info:
          prefix: ''
          build: true
          suffix: ''
      Landceeper:
        default: false
        permissions:
        - -Profession.land
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Miner:
        default: false
        permissions:
        - -Profession.miner
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Peasant:
        default: false
        permissions: []
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Builder:
        default: false
        permissions:
        - -Profession.bau
        inheritance: []
        info:
          prefix: ''
          roles-category: job
          build: true
          suffix: ''
      Moderator:
        default: false
        permissions:
        - essentials.back
        - essentials.broadcast
        - essentials.depth
        - essentials.eco
        - essentials.getpos
        - essentials.jump
        - essentials.kick
        - essentials.kill
        - essentials.time
        - essentials.top
        - essentials.unban
        - essentials.unbanip
        - essentials.whois
        - essentials.world
        - groupmanager.listgroups
        - groupmanager.mandemote
        - groupmanager.manload
        - groupmanager.manpromote
        - groupmanager.mansave
        - groupmanager.manselect
        - groupmanager.manuadd
        - groupmanager.manudel
        - towny.wild.*
        - essentials.ext
        - backup.canbackup
        - Profession.burg
     
  7. Offline

    Dragonntiger

    wheres the users part? o-o
     
  8. Offline

    -JHB-

    its seperated in GM
     
Thread Status:
Not open for further replies.

Share This Page