Inactive [ADMN/INFO] Permissions v2.1 - Continuing the legacy.

Discussion in 'Inactive/Unsupported Plugins' started by Nijikokun, Jan 21, 2011.

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

    Nijikokun

    Permissions 2.1 (Handler)
    Download 2.1 (Jar Only)
    Older: 2.0, 1.9, 1.8, 1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1, 1.0

    Permissions... Done right.
    Permissions allows plugin-authors to utalize a permission system that handles group inheritance, globalized permission settings, and more. All the features of a fine-grained permission system in one plugin.​

    Features
    1. Groups
    2. Group Inheritance, Allows for groups to gain permissions from other groups.
    3. User Permission System
    4. Fine Grained Permission system.
      1. Allowing for Globalized permissions
    5. Easy to use, setup, and implement.
    6. Two cache layers, first from file to memory, then from memory to cache.
      1. Plugins can control cache since version 2.1
    7. And much more.
    For the users


    Permissions gives server admins great control, mostly in-game reloading. Simply use /pr and the file will be re-cached and never touched again until you need to reload it. This allows you to quickly give your users the commands that they need without having to restart the server.

    Installation for 2.0 down:
    1. Download the archive.
    2. Extract contents to the /plugins folder.
    3. Open up /plugins/Permissions/config.yml
      1. Read / modify.
      2. Save.
    4. Reload Server.
    Changelog

    • 2.1
      • Multiple-World support
      • New cache layer, and cache control support for plugins
      • Editing features for plugins to hook into
      • Exempt nodes
      • World copying
    • 2.0
      • Forgot.
    • 1.9
      • Fully fixes inheritance.
        • Groups now inherit groups of groups that inherit groups of...
      • Cache system implemented.
      • Plugin authors can now delegate a variable system if needed.
      • API Updated with two new functions to get the point of what they do across.
        • Along with the new variable checks.
    • 1.8
      • Fixes the broken globalized node issue.
        • node.* is called a `globalized node`
    Supporting Plugins




    I have hit the character limit for this post.​

    Thanks to:
    • sk89q for hiearchical and node system idea.
    • Creator of GroupUsers for api implementation.
    This author has stopped development of this plugin. It is no longer supported and I wouldn't ask for help here, as you won't get any. New Permissions
    -RightLegRed
     
  2. Offline

    Zero9195

    So, I looked through the Permissions.jar, and realized that the Method getHandler( ) doesn't exist! Don't know why I should call it if it doesn't exist. Maybe a fail from you, maybe a fail in the Tutorial, but could you please fiy that? Or tell me how I can do this? Thank You ;)
     
  3. Offline

    COMMANDERMATT1

    I recently got my server host to install Bukkit/various plugins I want (I run a dedicated server) and so I am in need of some help of someone willing to help me set up my permissions/config. I have been trying for the past 2 days now and I have finally just given up. I have tried to figure out what could be the problem and reading the various comments but nothing seems to help me. I know that if you want to change the color of your name you will need iChat, but I also need help setting up the permissions/groups.

    If your willing to help me I will be very grateful. If you have experience in running a dedicated server then I am looking for help setting this up. (Teamviewing is preferable) I have full access to my server and can stop/restart my server at will with McMyAdmin control panel.

    Thank you in advance,

    Contact info:
    Skype: commandermatt1
    Website: http://miningbros.net/

    EDIT:
    Problem fixed, Thank you so much for the people who offered and helped me.
     
  4. Offline

    TheHank

    Hey Matt,

    I'd be glad to help out with configuring the permissions/groups or even the iChat config, as I had a very confusing time myself and had nobody to help me either. It's very easy if you read it all through on your own speed, without any distraction around you.

    If you want me to help you through skype or teamviewer, just PM me or add me on skype. I'm only fifteen and I managed to do it, so I think everyone should be able to do it with a bit of reading and patience.

    I'll also give my own Permissions config in this post, as an example for everyone else that has a problem with it.

    Contact info:
    Skype: ozzzit
    E-Mail: giorgio_f.u@live.nl

    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:
        Guest:
            default: true
            info:
                prefix: '&9'
                suffix: '&w'
                build: true
            inheritance:
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.ping'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.help'
                - 'essentials.spawn'
                - 'essentials.tpaccept'
        Member:
            default: false
            info:
                prefix: '&a'
                suffix: '&w'
                build: true
            inheritance:
                - Guest
            permissions:
                - 'essentials.setwarp'
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.ping'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.help'
                - 'essentials.spawn'
                - 'essentials.tpaccept'
        VIP:
            default: false
            info:
                prefix: '&6'
                suffix: '&w'
                build: true
            inheritance:
                - Guest
                - Member
            permissions:
                - 'essentials.setwarp'
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.ping'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.help'
                - 'essentials.spawn'
                - 'essentials.tpa'
                - 'essentials.tp'
                - 'essentials.tpahere'
                - 'essentials.tphere'
                - 'essentials.kick'
                - 'flashlight.normal'
        Moderator:
            default: false
            info:
                prefix: '&e'
                suffix: '&w'
                build: true
            inheritance:
                - Member
                - Guest
            permissions:
                - 'essentials.kick'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.setwarp'
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.tpa'
                - 'essentials.tp'
                - 'essentials.tpahere'
                - 'essentials.tphere'
                - 'essentials.tpaccept'
                - 'essentials.ping'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.help'
                - 'essentials.spawn'
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: '&w'
                build: true
            inheritance:
                - Moderator
                - VIP
                - Member
                - Guest
            permissions:
                - '*'
        Owner:
            default: false
            info:
                prefix: '&4'
                suffix: '&w'
                build: true
            inheritance:
                - Admin
                - Moderator
                - VIP
                - Member
                - Guest
            permissions:
                - '*'
    users:
        TheHank:
            group: Owner
            permissions:
        Dott:
            group: Admin
            permissions:
        LarKry:
            group: Member
            permissions:
        TheGreatBee:
            group: Moderator
            permissions:
        Extremator:
            group: Member
            permissions:
        Mauk:
            group: Member
            permissions:
     
    Don Redhorse likes this.
  5. Offline

    Fireside

    Hi all, first things first. Big thanks to the Developer/s .
    Working on configuring a high traffic Faction SMP server on a dedicated box.
    The setup has at its core
    Craftbukkit build 230
    Permissions 1.9
    WorldEdit 3.2.2
    WorldGuard 3.2.2
    Essentials 136

    We have the ranks and permission sets working just the way we want them for everything except that owners of protected regions do not have the ability to add/remove members from their region.
    I realise this may be a WG configuration issue. But as Permissions is the central point for such things, I thought I would ask here as well. I've read anything I can get my hands on and tried all the logical solutions I could think of.

    So, I am looking for information on the correct node syntax for /region command permissions. And I seek any information regarding the best way to allow owners of regions to edit only their own memberlists.

    It may be worth pointing out that our region.txt file was translated from a Heyo era region list. But aside from the fact that it defaulted all region members to Owner status, it appears to be playing its role correctly.

    Thanks in advance,
    Fireside.
     
  6. Offline

    Don Redhorse

    well I just posted about this... it can't be right that we need to hack a plugin to make it work with other plugins.. http://forums.bukkit.org/threads/alias-and-help-integration-into-bukkit.3360/ should be a solution for the future..

    so I can't reference more than ONE inheritance? see my "highly sophisticated" config.. http://pastebin.com/nZErBc0Y from http://forums.bukkit.org/threads/ad...zing-the-group-system.1403/page-59#post-40497 yeah being a network admin gives you ideas like that .. sigh..

    which would explain why it doesn't work... some of the examples suggest it though

    THANKS, for making this document.
     
  7. Offline

    chill1977

    In all fairness to you, I will say that technically making a group inherite from more than one is pheasable, but using the parser to sort the code, I would say that if you listed them like below that it would probably work. I have not tested this and I may make an example permissions file later today to test it. I simply say what I said in my document to keep it simple. Most people have enough trouble understanding how to add the nodes to begin with. Trying to explain how the fullscale inheritance might work would be taking them way to far.

    Code:
        SrvAdmins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Admins
                - EssentialsSrvADM
            permissions:
                - 'godmode.reconfig'
                - '/reloadwg'
                - 'worldedit.*'
                - '*'
    
     
  8. Offline

    Nijikokun

  9. Offline

    chill1977

    Coming along nicely. I basically wrote mine as a reference for those running Essentials as so many many seem to be having trouble with it.
     
  10. Offline

    Don Redhorse

    cool.. thanks to you and to chill1977 :)

    Will look into my problem... btw: could you perhaps add that to the op and edit the op to use spoilers? you posted a LOT of information in that OP and it makes looking through this thread a lot to go over.. :)

    I would just hope that more people would use a wiki

    btw: i know that the SrvAdmins is quite stupid atm with -'*' in it but I want to get rid of that later as I don't NEED all commands as an Server Operator.

    The Structure atm is in such way that it would be easy to give a new player non standard rights, for example only worldedit rights without creating a whole new group again.
     
  11. Offline

    Lucas14

    Hi there.
    Im going to ask a little Question but a big Problem for me...

    I can not found the reason for the server problem, done all what the forum was telling me... after it doesnt work, i copyed the file of a friend.. it still does not work.
    First the file, then the error. pls help me. Dont be scared of the loooong files. Thank you.

    plugin:
    permissions:
    system: default

    groups:
    Default:
    default: true
    info:
    prefix: '&f'
    suffix: '&f'
    build: true
    inheritance:
    permissions:
    - 'myhome.home.basic.*'
    - 'essentials.home'
    - 'essentials.sethome'
    - 'essentials.spawn'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.list'
    - 'essentials.whois'
    - 'essentials.help'
    - 'essentials.motd'
    - 'essentials.afk'
    - 'essentials.rules'
    - 'essentials.realname'
    - 'essentials.mail'
    - 'essentials.mail.send'

    Advanced:
    default: false
    info:
    prefix: '&6[VIP]&f'
    suffix: '&6'
    build: true
    inheritance:
    - Default
    permissions:
    - 'myhome.home.soc.*'
    - 'essentials.tptoggle'
    - 'essentials.nick'
    - 'essentials.tpahere'
    - 'essentials.tpa'
    - 'essentials.helpop'
    - 'essentials.getpos'
    - 'essentials.compass'
    - 'essentials.me'

    Moderator:
    default: false
    info:
    prefix: '&b[Mod]&f'
    suffix: '&b'
    build: true
    inheritance:
    - Advanced
    permissions:
    - 'myhome.admin'
    - 'essentials.tpo'
    - 'essentials.tpohere'
    - 'essentials.kick'
    - 'essentials.ban'
    - 'essentials.unban'
    - 'essentials.heal'
    - 'essentials.time'
    - 'essentials.top'

    Admins:
    default: false
    info:
    prefix: '&2[Admin]&f'
    suffix: '&4'
    build: true
    inheritance:
    - Moderator
    permissions:
    - '*'

    users:
    Lucas14:
    group: Admins
    permissions:

    Hannes:
    group: Moderator
    permissions:

    Now the error. (he cant load permissions).

    2011-02-04 16:46:39 [INFO] Preparing level "Survival2"
    2011-02-04 16:46:39 [INFO] Preparing start region
    Preparing spawn area: 8%
    Preparing spawn area: 40%
    Preparing spawn area: 89%
    Preparing spawn area: 97%
    2011-02-04 16:46:43 [INFO] LightVote 1.53 initialized
    04.02.2011 16:46:43 org.bukkit.plugin.SimplePluginManager loadPlugins
    SCHWERWIEGEND: Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:38)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
    ... 8 more
    Caused by: java.lang.NoSuchMethodError: org.bukkit.util.config.Configuration.get
    Keys(Ljava/lang/String;)Ljava/util/List;
    at com.nijiko.permissions.Control.load(Control.java:63)
    at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permiss
    ions.java:144)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    100)
    ... 13 more
    2011-02-04 16:46:43 [INFO] Loaded Essentials b131 by Zenexer, ementalo, Eris, an
    d EggRoll
    2011-02-04 16:46:43 [INFO] LightVote 1.53 scanning properties file.
    2011-02-04 16:46:44 [INFO] [MYHOME]: 0 homes loaded
    2011-02-04 16:46:44 [SEVERE] [MYHOME] Permissions isn't loaded, there are no res
    trictions.
    2011-02-04 16:46:44 [INFO] MyHome 1.8 enabled
    2011-02-04 16:46:44 [INFO] Done! For help, type "help" or "?"

    I hope you can help me, Thx.
     
  12. Offline

    TheHank

    Has something to do with this.
     
  13. Offline

    Sargeo

    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:
        Default:
            default: true
            info:
                prefix: '&f[&7Default&f]&7'
                suffix:
                build: true
            inheritance:
            permissions:
                - 'essentials.spawn'
                - 'essentials.kit'
                - 'essentials.motd'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.mail'
                - 'essentials.clearinventory'
                - 'essentials.list'
                - '/stack'
                - 'reputation.rep'
                - 'reputation.repbest'
                - 'reputation.repworst'
                - 'essentials.mail.send'
                - 'essentials.me'
                - 'essentials.sell'
                - 'essentials.helpop'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.msg'
                - 'essentials.ping'
                - 'essentials.help'
        Vip:
            default: false
            info:
                prefix: '&f[&aVip&f]&a'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.getpos'
                - 'essentials.nick'
                - 'essentials.top'
                - 'essentials.time'
        Trusted:
            default: false
            info:
                prefix: '&f[&eTrusted&f]&e'
                suffix:
                build: true
            inheritance:
                - Default
                - Vip
            permissions:
                - 'essentials.heal'
                - 'essentials.motd'
                - 'essentials.kick'
                - '/heal'
                - '/locate'
                - 'movecraft.release'
                - 'movecraft.list'
                - 'movecraft.remote'
                - 'movecraft.command'
        Mod:
            default: false
            info:
                prefix: '&f[&bMod&f]&b'
                suffix:
                build: true
            inheritance:
                - Default
                - Vip
                - Trusted
            permissions:
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - '/god'
                - '/slay'
                - 'worldedit.worldeditbedrock'
                - '/region'
        Admin:
            default: false
            info:
                prefix: '&f[&cAdmin&f]&c'
                suffix:
                build: true
            inheritance:
                - Default
                - Vip
                - Trusted
                - Mod
            permissions:
                - 'essentials.tree'
                - 'essentials.bigtree'
                - '/stopfire'
                - 'worldedit.worldedit'
                - 'reputation.repadd'
                - 'reputation.repsub'
                - 'reputation.repset'
                - 'reputation.represet'
                - 'worldedit.selection.*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        sargeo:
            groups: Admin
            permissions:
        floppy9100:
            groups: Admin
            permissions:
            - '*'

    For some reason, I am not an admin in game when I join. Is there something wrong with my config file?
    I am also using iChat, Essentials, WorldEdit, World Guard, Reputation, and MoveCraft.
    Thanks
     
  14. Offline

    TheHank

    Try putting '*' in the permissions: of your name aswell, just like you did with floppy9100.
     
  15. Offline

    Mactaveous

    Thanks Chill for helping with the other question I had. I think I Tab on some of the permissions.
     
  16. Offline

    minecrafter227

    Could you please tell me if there is a way to make it like Hmod? Like, having colors for different groups, and being able to use ingame commands for adding people to groups?
     
  17. Offline

    Don Redhorse

    well if you have a chat plugin it will honor the prefix and suffix in the config, see saregeo a little up as example. Ingame commands are being worked on, essentials has an option to do it
     
  18. Offline

    minecrafter227

    Im terrible with doing anything that invloves editing text files. So could i have a tut on how this is done? Thanks.
     
  19. Offline

    plewwatson

    Hey I need some help. I have Permissions installed. With groups and 3 or four users, and I am trying to install WorldGuard and set it up so that the default user cannot build, and then once people sign up on my site they can build as "members." Then if they donate they get VIP rank, which allows obsidian and buckets. I thought I figured it out, but when I start the server it says: WorldGuard: no known permission plugin detected. In my /plugins, theres the Permissions folder with the other Permissions folder and the .jar. What am I doing wrong?

    Here is my Permissions config file
    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:
      Guest:
        default: true
        info: {prefix: '&8[&0Guest&8]&8', suffix: '&8', build: false}
        inheritance: []
        permissions: [essentials.spawn, essentials.list, essentials.help, essentials.motd,
          essentials.rules, essentials.msg, essentials.helpop]
      member:
        defualt: false
        info: {prefix: '&8[&6User&8]&e', suffix: '&f', build: true}
        inheritance: [guest]
        permissions: [essentials.clearinventory, essentials.getpos, essentials.whois,
          essentials.mail, essentials.mail.send, essentials.ping, essentials.realname,
          essentials.compass, essentials.depth, essentials.home, essentials.sethome]
      VIP:
        default: false
        info: {prefix: '&2[&aV&2I&aP&2]&a', suffix: '&f', build: true}
        inheritance: [member]
        permissions: [essentials.heal, essentials.top, essentials.tpa, essentials.jump, essentials.kit.KITNAME]
      Mod:
        default: false
        info: {prefix: '&8[&4Mod&8]&4', suffix: '&f', build: true}
        inheritance: [VIP]
        permissions: [essentials.kick, essentials.ban, essentials.unban, essentials.unbanip, essentials.banip]
      Admin:
        default: false
        info: {prefix: '&4[&1Admin&4]&9', suffix: '&a', build: true}
        inheritance: [Mod]
        permissions: [essentials.*]
      Owner:
        default: false
        info: {prefix: '&1[&4Owner&1]&4', suffix: '&f', build: true}
        inheritance: [Admin]
        permissions: ['*']
    users:
      plewwatson:
        group: Owner
        permissions: ['*']
      Flame_Heart:
        group: Admin
        permissions: []
      John55223:
        group: Admin
        permissions: []
    and here is my WorldGuard file

    Code:
    #
    # WorldGuard's configuration file
    #
    # About editing this file:
    # - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
    #   you use an editor like Notepad++ (recommended for Windows users), you
    #   must configure it to "replace tabs with spaces." In Notepad++, this can
    #   be changed in Settings > Preferences > Language Menu.
    # - Don't get rid of the indents. They are indented so some entries are
    #   in categories (like "enforce-single-session" is in the "protection"
    #   category.
    # - If you want to check the format of this file before putting it
    #   into WorldGuard, paste it into http://yaml-online-parser.appspot.com/
    #   and see if it gives "ERROR:".
    # - Lines starting with # are commentsand so they are ignored.
    #
    # WARNING:
    # Remember to check the compatibility spreadsheet for WorldGuard to see
    # if any features are currently broken in your version of Bukkit.
    #
    
    summary-on-start: on
    protection:
        enforce-single-session: on
        item-durability: on
    
    simulation:
        sponge:
            enable: on
            redstone: off
            radius: 3
    
    physics:
        no-physics-gravel: off
        no-physics-sand: off
        allow-portal-anywhere: off
        disable-water-damage-blocks: []
    
    ignition:
        block-tnt: on
        block-lighter: off
    
    fire:
        disable-all-fire-spread: on
        disable-fire-spread-blocks: []
        disable-lava-fire-spread: on
        lava-spread-blocks: []
    
    mobs:
        block-creeper-explosions: on
        block-creeper-block-damage: off
    
    spawn:
        login-protection: 3
        spawn-protection: 0
        kick-on-death: off
        exact-respawn: off
        teleport-to-home-on-death: off
    
    player-damage:
        disable-fall-damage: off
        disable-lava-damage: off
        disable-fire-damage: off
        disable-drowning-damage: off
        disable-suffocation-damage: off
        disable-contact-damage: off
        teleport-on-suffocation: off
    
    regions:
        enable: on
        wand: 287
        default:
            build: true
            chest-access: false
            pvp: true
    
    blacklist:
        logging:
            console:
                enable: on
            database:
                enable: off
                dsn: jdbc:mysql://localhost:3306/minecraft
                user: root
                password: pass
                table: blacklist_events
            file:
                enable: on
                path: worldguard/logs/%Y-%m-%d.log
                open-files: 10
    
    # See http://wiki.sk89q.com/wiki/WorldGuard/Permissions/Bukkit
    permissions:
        users:
            sk89q:
                permissions:
                    - /region
                    - /reloadwg
    
    and here is my WorldGuard blacklist file

    Code:
    #
    # This is the blacklist for WorldGuard. The blacklist allows you to perform
    # actions depending on an item or block ID. Comments start with # and they
    # are ignored so you can put your own notes.
    #
    # --------------------------------------------------------------------------
    #
    # WARNING:
    # Remember to check the compatibility spreadsheet for WorldGuard to see
    # if any events or actions are currently broken in your version of Bukkit.
    #
    # --------------------------------------------------------------------------
    #
    # Format:
    # [item1,item2]
    # option1=options
    # event1=whatToDo1,whatToDo2,whatToDo3
    # event2=whatToDo1,whatToDo2
    #
    # Example to block some ore mining and placement:
    # [coalore,goldore,ironore]
    # on-break=deny,log,kick
    # on-place=deny,tell
    #
    # Options:
    # - ignore-groups (comma-separated list of groups to not affect)
    # - comment (message for yourself that is printed with 'log' and 'notify')
    # - message (optional message to show the user instead; %s is the item name)
    #
    # Events:
    # - on-break (when a block of this type is about to be broken)
    # - on-destroy-with (the item/block held by the user while destroying)
    # - on-place (a block is being placed)
    # - on-use (an item like flint and steel or a bucket is being used)
    # - on-interact (when a block in used (doors, chests, etc.))
    # - on-drop (an item is being dropped from the player's inventory)
    # - on-acquire (an item enters a player's inventory via some method)
    #
    # Actions (for events):
    # - deny (deny completely)
    # - notify (notify admins)
    # - log (log to console/file/database)
    # - tell (tell a player that that's not allowed)
    # - kick (kick player)
    # - ban (ban player)
    #
    # Users with the /worldguardnotify permission will receive notifications.
    #
    # -------------
    #
    # You can have the same block or item used in two different sections and
    # they will both apply:
    #
    # [goldblock]
    # ignore-groups=vip
    # on-break=deny
    # [goldblock]
    # ignore-groups=admins
    # on-break=tell
    #
    # However, some events override others. For example, if you disable both
    # usage of the diamond pickaxe (with the on-destroy-with event) and
    # destruction of gold blocks (with the on-break event) and a player tries
    # to destroy a gold block with a diamond pickaxe, because the
    # on-destroy-with event comes first, the rules for the gold block
    # will not be applied (but the player will be denied nevertheless).
    #
    # --------------------------------------------------------------------------
    #
    # Some examples follow.
    #
    # REMEMBER: If a line has # in front, it will be ignored.
    #
    # --------------------------------------------------------------------------
    
    # Deny lava buckets
    #[lavabucket]
    #ignore-groups=admins,mods
    #on-use=deny,tell
    
    # Deny some ore
    #[coalore,goldore,ironore]
    #ignore-groups=admins,mods
    #on-break=notify,deny,log
    [lavabucket,waterbucket,bucket]
    ignore-groups=admins,VIP
    on-use=dent,tell
    
    [tnt]
    ignore-groups=admins
    on-place=deny,notify,kick
    
    [obsidian]
    ignore-groups=admins,VIP
    on-place=deny,tell
    on-break=deny,tell
    
     
  20. Offline

    Don Redhorse

    shamelessly stolen from chill:

    <font color="rgb(20, 20, 20)"> <font color="rgb(20, 20, 20)">Nijikokun said: <font color="rgb(16, 97, 179)">↑</font></font>
    <font color="rgb(16, 97, 179)">http://wiki.nexua.org/Permissions</font>
    Coming along nicely. I basically wrote mine as a reference for those running Essentials as so many many seem to be having trouble with it.
    Download the Updated Permissions/Essentials setup tutorial from here Updated 2/3 9:40 PM <Edit by Moderator: Redacted mediafire url>
    </font>
     
    Last edited by a moderator: Dec 15, 2016
  21. Offline

    chill1977

    First make sure you have the latest TESTED version of Permissions and Essentials.
    Next put the Permissions and Essentials .jar in the plugins folder and the corresponding folders with each plugin in the plugins folder. Run minecraft to generate any files that need to be generated, then shut it down again. You then need to edit your Essentials config.yml that is found in plugins/Essentials/config.yml.

    Essentials comes with certain commands already under the restricted commands list. I don't believe these still work as of the new updates and Bukkit changing the way it handles the commands. But none the leass delete those commands that are there to save yourself headeache later. Below is a basic Essentials config.yml that should work for most everyone.
    Code:
    # A color code between 0-9 or a-f. Set to 'none' to disable.
    ops-name-color: 'none'
    # The character(s) to prefix all nicknames, so that you know they are not true usernames.
    nickname-prefix: '~'
    # The delay, in seconds, required between /home, /tp, /warp, etc.
    teleport-cooldown:
    # The delay, in seconds, required between /heal attempts
    heal-cooldown:
    # The number of items given if the quantity parameter is left out in /item or /give.
    default-stack-size: 1
    # The message of the day, displayed on connect and by typing /motd.
    motd:
      - '&cWelcome, {PLAYER}&c!'
      - '&fType &c/help&f for a list of commands.'
    # The server rules, available by typing /rules
    rules:
      - '[1] Be respectful'
      - '[2] Be ethical'
      - '[3] Use common sense'
    # Disabled commands will be completelly unavailable on the server.
    disabled-commands:
    # Restricted commands will only be available to ops.
    # These will have NO EFFECT if you have Permissions installed!
    # These are here only if you want something simpler than Permissions.
    restricted-commands:
    # Note: All items MUST be followed by a quantity!
    # Times are measured in seconds.
    kits:
      tools:
        delay: 10
        items:
          - 277 1
          - 278 1
          - 279 1
    # End of File
    A few rules that apply for .yml files.
    1) If you edit the .yml file keep the same format, this means same amount of spaces from the edge of paper. Doesn't seem like a big deal but it is!
    2) Do not use the apostrophe in the text you want displayed. Example : - '[1] Be respectful of chill's stuff.' This comes across that the code that starts before [1] and should end after chill. Thus, throwing the rest of your command line starts and stops off throughout the file and leaving an open command at the end of the file.
    3) Be sure to wrapped all commands in apostrophes. Some of them are not required but it doesn't hurt and will save you a headache later.
    4) Leave a space after every colon, before every command starts.
    5) Do not use tabs. Use the spacebar. If you are using notepad++ there is a setting in the settings at the top that lets you use spaces when tab is hit instead of actually tabbing.
    Every plugin will be required to change their commands so that other plugins using the same commands won't try to load over them causing neither to work but for now here is how you disable the commands you don't want Essentials to have priority over.
    1) Open the Essentials.jar with winrar or winzip.
    2) Open the plugin.yml in notepad or notepad++.
    3) Delete the commands that you don't want to use Essentials for.
    4) Save file and close, at this time you should be prompted as to whether or not you want the file updated in the .jar, click yes.

    Now that you have Essentials set up we will move to Permissions.
    Before you do any editing to this file, I suggest you start Minecraft and make sure there are no errors. If there is then you need to update Permissions, Craftbukkit, and Essentials.
    Do not say you already have. They are changing versions rather quickly and you can bet the one you downloaded 3 hrs ago is not the newest one.
    If it loads ok then close the server. Do not try the commands and say it doesn't work, at this point you have no commands.
    Navigate to plugins/Permissions/config.yml and open in notepad.
    Same rules apply to this as Essentials as stated above. Basic format follows 4,8, and 12 spaces from the margin, once again NO TABS.
    It comes with a basic format of what it should look like.
    Now that you have the Permissions config.yml open let's start the editing.
    You can change the group names to suit your needs. If you want to add new groups to the existing ones, do not use copy and paste.
    This may work sometimes but more times than not it will cause errors.
    My suggestion is that each time you change anything you test it at http://yaml-online-parser.appspot.com/ to make sure you did that part correctly before moving on. This will make it easier to find errors.
    This is an example group with color which I will explain later.
    Code:
        Member:
            default: false
            info:
                prefix: '&cMember'
                suffix: '&c'
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.me'
                - 'essentials.clearinventory'
                - 'essentials.afk'
                - 'essentials.sell'
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.accept'
                - 'essentials.tp'
                - 'essentials.item'
                - 'magiccarpet.mc'
                - 'woolcolor.spawn'
    You must add the permission nodes to the group that you want to have access to that command. Each plugin that is compatible with Permissions will have the nodes listed on the forum or in a wiki linked on the respective forum.
    You must have an apostrophe at the beginning of each line of command and at the end.
    You must have a space after each dash.
    You must have a space after each colon.
    After you add each group you are going to add then check it in the parser linked above
    Your highest group should simply have permissions: '*' , this will give them access to all commands.
    You see in the code that this group has inheritance: -Default. This gives the users of this group all the permissions listed for this group as well as those permissions listed for the Default group.
    This allows each permission "node" to be used only once per document unless you have a group that you do not want to use inheritance. In simplicity each group should inherite from the group below it. 1 group not 3 or 4 that are blowe it. Members will inherite from Default, Mods will inherite from Members, Admin will inherite from Mods.
    Now you can edit the users.
    Default is the base level anyone that joins your server level. For small servers that want protection against greifers. I suggest you use this level to stop people from building until they are added to a higher group. In order to stop people from building you must have the Antibuild plugin and set build: false
    As for bigger servers that have thousands of people joining per hour this is not realistic, so you set the Default as the basic can build member and have other plugins installed to control greifing like WorldGuard/WorldEdit, BigBrother or numerous others in the forum.
    The new version of Permissions allows you to edit per user colors. While I am not positive, I would assume this will over-ride the group seetings of that user. I know that permissions given in the user area add to those permissions given to that users group for that user.
    Code:
    users:
        chill1977:
            group: Mod
            info:
                prefix: '&aMOd'
                suffix: '&a'
            permissions: 
                - 'essentials.banip' 
    This code says that the user chill1977 is in the Mod group, which means he has access to the permissions given to that group plus any group it inherites from (Members and Default) plus the command /banip. This enables you to give special commands to certain people without giving them to the whole group.
    It also adds color and the word Mod before his name.
    You do not add users that you want to use the Default group. They will automatically use the DEfault group when they log in.
    In order to use color you need a plugin that enables and formats the color. I suggest iChat, while there are others, this pluign is made by the Permissions author which means it is more liely to work with permissions, plus it very easy to use.
    Here is the code that I use for iChat.
    Code:
    message-format: '+prefix+suffix +name: +message'
    Once you have everything set up like you want it, hopefully you have listened and been testing the file throughout the editing process using the online parser and have no errors, then this should work. This is an example of my config.yml for permissions with basic Essentials commands.
    Code:
    plugin:
        permissions:
            system: default
    groups:
        Default:
            default: true
            info:
                prefix: 'New'
                suffix:
                build: false
            inheritance: 
            permissions:
                - 'essentials.spawn'
                - 'essentials.motd'
                - 'essentials.help'
        Member:
            default: false
            info:
                prefix: '&cMember'
                suffix: '&c'
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.me'
                - 'essentials.clearinventory'
                - 'essentials.afk'
                - 'essentials.sell'
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.accept'
                - 'essentials.tp'
                - 'essentials.item'
        VIP:
            default: false
            info:
                prefix: '&cVIP'
                suffix: '&c'
                build: true
            inheritance:
                - Member
            permissions:
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.time'
                - 'essentials.msg'
                - 'essentials.getpos'
                - 'essentials.tree'
                - 'essentials.bigtree'
                - 'essentials.sell'
                - 'essentials.setwarp'
        Mod:
            default: false
            info:
                prefix: '&1Mod'
                suffix: '&1'
                build: true
            inheritance:
                - VIP
            permissions:
                - 'essentials.list'
                - 'essentials.kick'
                - 'essentials.tphere'
                - 'essentials.give'
                - 'essentials.heal'
                - 'essentials.heal'
                - 'essentials.ban'
                - 'essentials.helpop'
                - 'essentials.unban'
                - 'essentials.banip'
                - 'essentials.unbanip'
        Admin:
            default: false
            info:
                prefix: '&aAdmin'
                suffix: '&a'
                build: true
            inheritance:
                - Mod
            permissions:
                - '*'
    users:
        chill1977:
            group: Admin
            info:
               prefix:
               suffix
            permissions:
    I have removed all of the ## lines as these are just comment tags and have no bearing on the file. This makes it easier to look through the file.
    If I have missed anything or you have any suggestions to add then please send me a convo with proposed ideas. Thanks.
     
  22. Offline

    Don Redhorse

    /plugins is where the jar is
    /plugins/permissions is where the config is
     
  23. Offline

    plewwatson

    So I place my Permissions.jar into /plugins? instead of under /plugins/Permissions?
     
  24. Offline

    minecrafter227

    HOW DID YOU RIGHT THAT SO FAST!?
     
  25. Offline

    Don Redhorse

    yes
     
  26. Offline

    plewwatson

    Now when I start the server it says:

    2011-02-05 09:19:21 [INFO] WorldGuard: No known permissions plugin detected. Using configuration file for permissions.
    2011-02-05 09:19:21 [INFO] WorldGuard: Blacklist loaded.
    2011-02-05 09:19:21 [INFO] WorldGuard: Single session is enforced.
    2011-02-05 09:19:21 [INFO] WorldGuard: TNT ignition is blocked.
    2011-02-05 09:19:21 [INFO] WorldGuard: Lighters are PERMITTED.
    2011-02-05 09:19:21 [INFO] WorldGuard: Lava fire is blocked.
    2011-02-05 09:19:21 [INFO] WorldGuard: All fire spread is disabled.
    2011-02-05 09:19:21 [INFO] [Permissions] version [2.0] (Handler) loaded
    2011-02-05 09:19:22 [INFO] WorldEdit 3.2.2 loaded.
    2011-02-05 09:19:22 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-02-05 09:19:22 [WARNING] Warps were not found in warps folder
    2011-02-05 09:19:22 [INFO] Loaded Essentials b134 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-05 09:19:22 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.


    Then when I log in and try to, lets say type /modgrp plewwatson guest, to change myself into guest so that I can test if the WorldGuard blacklist works, it tells me that I am not using Permissions. Whats going wrong here?
     
  27. Offline

    Don Redhorse

    that works.. essential isn't working now... so going there.. thanks a lot for helping..
     
  28. Offline

    plewwatson

    Can anyone help me with my problems? I also want to have prefixes for the ranks when people chat. So when a VIP member would say something it would say [VIP]<hisname> Hi or whatever. I downloaded iChat and tried to set that up but it doesn't seem to be working.
     
  29. Offline

    SteelWing

    Same problem here, colors will only work if I change the group prefix. Which would mean every user would have to have his or her own group if they want a custom prefix/suffix. Latest version of iChat is supposed to fix this but I can't get it to work. here is a pastebin of my permissions config and my iChat config if it helps.
     
  30. Offline

    RugRats

    Everyone who logs onto my server has access to all commands any problems here?

    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:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn*'
                - 'essentials.warp'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.mail'
                - 'essentials.send'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.compass'
                - 'general.help'
                - 'magiccarpet.mc'
        Moderator:
            default: false
            info:
                prefix: '&cModerator'
                suffix: '&c'
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'general.clearinventory'
                - 'general.getpos'
                - 'general.bigtree'
                - 'general.tree'
                - 'general.time'
                - 'general.heal'
                - 'general.kick'
                - 'general.item'
                - 'general.give'
                - 'general.setwarp'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    ##
    users:
        rugrats:
            group: Admins
            permissions:
        dachampjr:
            group: Moderator
            permissions:
     
  31. Offline

    chill1977

    To start with for the 1000th time and 3rd time on a page prior to this one. You can not use General and Essentials.

    And your code has some funky characters in it. Here is a good one:

    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:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn*'
                - 'essentials.warp'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.mail'
                - 'essentials.send'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'essentials.compass'
                - 'general.help'
                - 'magiccarpet.mc'
        Moderator:
            default: false
            info:
                prefix: '&cModerator'
                suffix: '&c'
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'general.clearinventory'
                - 'general.getpos'
                - 'general.bigtree'
                - 'general.tree'
                - 'general.time'
                - 'general.heal'
                - 'general.kick'
                - 'general.item'
                - 'general.give'
                - 'general.setwarp'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    ##
    ##
    users:
        rugrats:
            group: Admins
            permissions:
        dachampjr:
            group: Moderator
            permissions:
     
Thread Status:
Not open for further replies.

Share This Page