Permissions not working

Discussion in 'Bukkit Help' started by Skittle013, Mar 7, 2013.

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

    Skittle013

    I made myself moderator to test my new permissions with the following code:
    groups:
    Default:
    default: true
    prefix: '[Guest]'
    suffix: ''
    permissions: null
    Vip:
    prefix: '[Vip]'
    suffix: ''
    permissions: null
    inheritance:
    - Default
    Moderator:
    prefix: '[Mod]'
    suffix: ''
    permissions: [bukkit.command.kick, bukkit.command.ban.*, bukkit.command.unban.*, bukkit.command.weather, bukkit.command.say]
    inheritance:
    - Trusted
    Admin:
    prefix: '[Admin]'
    suffix: ''
    permissions:
    - '*'
    inheritance:
    - Moderator
    users:
    Skittle013:
    group:
    -Moderator

    (this is the end of the code)


    When I tried to do one of the commands I allowed mods to do it says "Im sorry, you do not have permission to perform this command. Please contact the server administrators if you believe this is an error. Problem is I am the server administrator....
    I am kind of a noob at coding and I was wondering if I messed it up by any change? I use PermissionsEX plugin if that helps at all.
     

    Attached Files:

  2. Offline

    Jeyge

    I see a couple things wrong. The first being that your Moderator group inherits from a group called Trusted but you don't have a Trusted group. I'm guessing you meant to put Vip in there. And second is that you aren't actually part of the Moderator group. You need to add a space after the - in your group. It should look like:
    Code:
    users:
        Skittle013:
            group:
            - Moderator
     
  3. Offline

    Skittle013

    Ok now It shows me the prefix, but the permissions don't work, are these in the proper format?
    Code:
    groups:
        Default:
            default: true
            prefix: '[Guest]'
            suffix: ''
            permissions: null
        Vip:
            prefix: '[Vip]'
            suffix: ''
            permissions: null
            inheritance:
            - Default
        Moderator:
            prefix: '[Mod]'
            suffix: ''
            permissions:
            - 'bukkit.command.kick'
            - 'bukkit.command.ban'
            - 'bukkit.command.ban.ip'
            - 'bukkit.command.ban.player'
            - 'bukkit.command.unban'
            - 'bukkit.command.unban.ip'
            - 'bukkit.command.unban.player'
            - 'bukkit.command.gamemode'
            inheritance:
            - Vip
        Admin:
            prefix: '[Admin]'
            suffix: ''
            permissions:
            - '*'
            inheritance:
            - Moderator
    users:
        Skittle013:
            group:
            - Moderator
    

    The moderator codes are what I am looking at
     
  4. Offline

    Jeyge

    That should work. Which command are you doing that isn't working?
     
  5. Offline

    Skittle013

    none of them are working, I tried removing the dashes as well, because someone told me they meant negative permission or something. So yea its not working still......
     
  6. Offline

    Jeyge

    Leave the dashes in. They only negate if you double them up like this "- -bukkit.command.kick".

    Are you perhaps running any other plugins? The only reason those permissions wouldn't work is if you are running something like Essentials that overrides the command.
     
  7. Offline

    Skittle013

    I think I put it in the wrong place, you put it in the /plugins/permissionsex/config, right? If so, do you just paste it in under all the original text, or is there a certain place you need to put it, if so where?
    This is what it says when there is nothing in it, where do I put the permissions?
    Code:
    permissions:
      backend: file
      backends:
        file:
          file: permissions.yml
      superperms: {}
    
     
  8. Offline

    Jeyge

    Nope, you need to put it in the permissions.yml file.
     
Thread Status:
Not open for further replies.

Share This Page