Help with Permissions

Discussion in 'Bukkit Help' started by thescreem, Feb 4, 2011.

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

    thescreem

    Hello, I'm having a bit of trouble setting up Permissions.
    I would REALLY appreciate it if someone could help me.
    Here is what my Permissions looks like:

    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Moderators:
            default: false
            info:
                prefix: '&b'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
              - ‘essentials.me’
              - ‘essentials.warp’
              - ‘essentials.setwarp’
              - ‘essentials.give’
              - 'tplus.*'
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.clearinventory’
              - ‘essentials.nick’
              - ‘essentials.spawn’
              - ‘essentials.help’
              - ‘essentials.kick’
              - ‘essentials.ban’
              - ‘essentials.unban’
              - ‘essentials.banip’
              - ‘essentials.unbanip’
              - ‘essentials.rules’
              - ‘essentials.msg’
              - ‘godmode.god.self’
    
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix:
                build: true
            inheritance:
                - Head Moderators
            permissions:
              - ‘essentials.me’
              - ‘essentials.warp’
              - ‘essentials.setwarp’
              - ‘essentials.item’
              - ‘essentials.give’
              - 'tplus.*'
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.clearinventory’
              - ‘essentials.nick’
              - ‘essentials.spawn’
              - ‘essentials.heal’
              - ‘essentials.help’
              - ‘essentials.kick’
              - ‘essentials.ban’
              - ‘essentials.unban’
              - ‘essentials.banip’
              - ‘essentials.unbanip’
              - ‘essentials.rules’
              - ‘essentials.msg’
              - ‘essentials.kill’
              - ‘godmode.*’
              - ‘essentials.spawnmob’
    
        Head Moderators:
            default: false
            info:
                prefix: '&c'
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
              - ‘essentials.me’
              - ‘essentials.warp’
              - ‘essentials.setwarp’
              - ‘essentials.give’
              - 'tplus.*'
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.clearinventory’
              - ‘essentials.nick’
              - ‘essentials.spawn’
              - ‘essentials.help’
              - ‘essentials.kick’
              - ‘essentials.ban’
              - ‘essentials.unban’
              - ‘essentials.banip’
              - ‘essentials.unbanip’
              - ‘essentials.rules’
              - ‘essentials.msg’
              - ‘godmode.god.self’
    
        Regular:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.help’
              - ‘essentials.motd’
              - ‘essentials.msg’
    
        New:
            default: true
            info:
                prefix:
                suffix:New Player
                build: true
            inheritance:
            permissions:
              - ‘essentials.helpop’
              - ‘essentials.help’
              - ‘essentials.motd’
              - ‘essentials.msg’
    
        Donators:
            default: false
            info:
                prefix:
                suffix:
                build: false
            inheritance: Regular
            permissions:
      
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        thescreem:
            group: Regular
            permissions:
    
        Rycerub:
            group: Regular
            permissions:
    
        HeeroZero:
            group: Moderators
            permissions:
    The problem is that everyone has every command. I gave no group the /eco or /mail command, but everyone still has it, no matter what group they're in. I've been trying for hours to find out what the problem is, and I couldn't find it. Any help would be appreciated.

    Thanks for the help.
     
  2. Offline

    Lewis

    Lots and lots of little things I see being wrong or just uncommon-sense like ^^.

    In comparison to mine which is working fine, I start with the basic groups then the further down the page I go, the higher the groups get. So default/mod/admin or w/e.

    Basic error you should change first is: suffix:New Player, simply add a space.

    If that doesn't fix anything, repost :]

    You can do a few things like take all commands off the Admin group and just use ['*'] for all commands.

    Also don't need any inheritance for the Admin group if you use the ['*'] permission node.

    **
    Have fixed the basic errors, not changed the groups around as it should still work, just looks wrong ^^
    **
    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Moderators:
            default: false
            info:
                prefix: '&b'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
              - ‘essentials.me’
              - ‘essentials.warp’
              - ‘essentials.setwarp’
              - ‘essentials.give’
              - 'tplus.*'
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.clearinventory’
              - ‘essentials.nick’
              - ‘essentials.spawn’
              - ‘essentials.help’
              - ‘essentials.kick’
              - ‘essentials.ban’
              - ‘essentials.unban’
              - ‘essentials.banip’
              - ‘essentials.unbanip’
              - ‘essentials.rules’
              - ‘essentials.msg’
              - ‘godmode.god.self’
    
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix:
                build: true
            inheritance:
                - Head Moderators
            permissions: ['*']
    
        Head Moderators:
            default: false
            info:
                prefix: '&c'
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
              - ‘essentials.me’
              - ‘essentials.warp’
              - ‘essentials.setwarp’
              - ‘essentials.give’
              - 'tplus.*'
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.clearinventory’
              - ‘essentials.nick’
              - ‘essentials.spawn’
              - ‘essentials.help’
              - ‘essentials.kick’
              - ‘essentials.ban’
              - ‘essentials.unban’
              - ‘essentials.banip’
              - ‘essentials.unbanip’
              - ‘essentials.rules’
              - ‘essentials.msg’
              - ‘godmode.god.self’
    
        Regular:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
              - ‘essentials.home’
              - ‘essentials.sethome’
              - ‘essentials.helpop’
              - ‘essentials.help’
              - ‘essentials.motd’
              - ‘essentials.msg’
    
        New:
            default: true
            info:
                prefix:
                suffix: New Player
                build: true
            inheritance:
            permissions:
              - ‘essentials.helpop’
              - ‘essentials.help’
              - ‘essentials.motd’
              - ‘essentials.msg’
    
        Donators:
            default: false
            info:
                prefix:
                suffix:
                build: false
            inheritance: Regular
            permissions:
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        thescreem:
            group: Regular
            permissions:
    
        Rycerub:
            group: Regular
            permissions:
    
        HeeroZero:
            group: Moderators
            permissions:
     
  3. Offline

    thescreem

    Thanks a lot!
    It sort-of worked, I have [Regular] in front of my name, but I still have every single command, despite the fact that I'm in the Regular group. And about the groups not being in order, I was sort of in a rush when copying/pasting the groups from Microsoft Word into the Permissions file. I was actually planning on making it in order.

    The reason why I didn't use [ ' * ' ] for the admins group, is because I don't want them to have the commands /tree, /bigtree, /eco, /mail commands, and some others, which I can't remember right now.

    Also, the prefix colors aren't working...
    So once again, any help would be appreciated.
     
  4. Offline

    Lewis

    Are you in the op.txt file? If so that should give you access to most (all?) console commands.

    Also, you can disable any of Essentials commands in Essentials config, thus not allowing Admins the ability to commands like etree etc, however both ways work. I just go OCD Tidy on these things ^^.

    In regards to the colour, no idea why that isn't working. Have not messed about with that yet :).

    If you still need help tomorrow I'll PM you my contact details. If not, and you have figured it out or someone has helped, I'm happy for you! :)

    3am, would be more helpful ^^.
     
  5. Offline

    c0mp

    That may be part of the problem. Word does strange things with stuff that should be plain-text. Even Windoze in general handles line-breaks differently than with linux and such, so maybe that's screwing around with the way the file is interpreted?
     
  6. Offline

    thescreem

    That explains it.... I'm in the op.txt file... Sort of a foolish mistake. Anyways, thanks for the help, and I completely forgot that I can make some commands unavailable in the Essentials file...

    Thanks SO much for everything, I probably would have never found that missing space, or the fact that I was in the ops.txt file that was the problem...

    Once again, THANK YOU!!!
    (I said Thank You too much didn't I?)
     
  7. Offline

    huntj88

    hey is there any way that i can get the default group to not display "default" before their name? like setting it to null or something? so that the dont have anything before their name?
     
  8. Offline

    thescreem

    Okay, I took myself out of the ops.txt file, but now I can't do anything. I can't break blocks, and I have ZERO commands. Instead of saying "You don't have sufficient permission" it says "You do not have access to that command, which as far as I know, is because of minecraft, not permissions. If I'm in ops.txt I have every command, but when I'm not I have zero commands...

    Any more help would be appreciated.

    EDIT: The being unable to break blocks is just spawn protect, forgot I installed World Guard.
     
  9. Offline

    Lewis

    Code:
    plugin:
       permissions:
          system: default
    
    groups:
       New:
          default: true
          info:
          prefix:
          suffix: New Player
          build: true
          inheritance:
          permissions:
             - 'essentials.helpop'
             - 'essentials.help'
             - 'essentials.motd'
             - 'essentials.msg'
             - 'essentials.rules'
       Regular:
          default: false
          info:
          prefix:
          suffix:
          build: true
          inhertiance:
             - 'New'
          permissions:
             - 'essentials.home'
             - 'essentials.sethome'
       Donators:
          default: false
          info:
          prefix:
          suffix:
          inhertiance:
             - 'Regular'
       Moderators:
          default: false
          info:
          prefix: '&b'
          suffix:
          build: true
          inhertiance:
             - 'Donators'
          permissions:
             - 'essentials.me'
             - 'essentials.warp'
             - 'essentials.setwarp'
             - 'essentials.give'
             - 'tplus.*'
             - 'essentials.clearinventory'
             - 'essentials.nick'
             - 'essentials.spawn'
             - 'essentials.help'
             - 'essentials.kick'
             - 'essentials.ban'
             - 'essentials.unban'
             - 'essentials.banip'
             - 'essentials.unbanip'
             - 'godmode.god.self'
       Head Moderators:
          default: false
          info:
          prefix: '&c'
          suffix:
          build: true
          inheritance:
             - 'Moderator'
          permissions:
       Admins:
          default: false
          info:
          prefix: '&4'
          suffix:
          build: true
          inheritance:
          permissions:
             - '*'
    
    users:
       thescreem:
          group: Regular
          permissions:
       Rycerub:
          group: Regular
          permissions:
       HeeroZero:
          group: Moderators
          permissions:
    Ok, so I took the liberty of tidying up the entire Permissions config, just make sure (I assume you are thescreem) that you are in the correct group. From what you pasted you are in Regular, and I assume you are the Admin? Maybe change that. Otherwise there are no errors with this file.
     
  10. Offline

    thescreem

    Wow, thank you so much, I was going to do this myself, until I found out that you did it for me. I was thinking that having the same permissions in more than 1 group messed up something.

    I put myself in Regular while testing permissions, to see if I have all the commands I should have, and nothing more.

    You've been a great help, thank you so much.
     
Thread Status:
Not open for further replies.

Share This Page