Inactive [ADMN/DEV] Permissions 3.1.6 - The Plugin of Tomorrow [935]

Discussion in 'Inactive/Unsupported Plugins' started by rcjrrjcr, May 24, 2011.

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

    rcjrrjcr

    Permissions 3.1.6 (Yeti)

    Download:
    Latest Stable (3.1.6) : Full Zip | Main Jar Only | SQL Interface Jar Only

    Previous Versions:
    3.1.5 (JAR|SQL) | 3.1.4 (JAR|SQL) | 3.1.3 (JAR|SQL) | 3.1.2 (JAR|SQL) | 3.1.1 (JAR) | 3.1 (JAR) | More older versions


    COMMAND RESTRUCTURING
    Feel free to comment and give suggestions.


    DO NOT USE GLOBAL CONFIGS FOR NOW. THE GLOBAL CONFIG IS MEANT TO SUPPLEMENT WORLD-SPECIFIC CONFIGS, NOT THE OTHER WAY ROUND. SEE https://github.com/TheYeti/Permissions/wiki/Global-vs-World .I WILL WRITE A PROPER TUTORIAL ON HOW TO USE THE GLOBAL CONFIGS SOON.

    TODO:
    • Revamp commands
    Known plugins that cause IllegalAccessError(s):

    • Help (not fixed yet)
    Temp Fix for IAEs (open)




    1. Open Help's JAR with 7zip.
    2. Find MANIFEST.MF (it can be in the root folder or in the META-INF folder, or both).
    3. Open the MANIFEST.MF file in a text editor
    4. Look for a line that starts with "Class-Path:".
    5. Delete "Permissions.jar" from that line.
    6. Save the manifest.
    7. 7zip will prompt you to save changes back into the archive. Accept.
    8. Restart server.





    Plugin Authors: How to hook into Permissions

    Due to @TheYeti being busy in RL for now, I have created a new thread for Permissions 3.x. TheYeti is still part of the Permissions team.

    Permissions... Reborn.
    This is a continuation of the work that was originally done by Nijikokun. All original credit goes to them as without their work this plugin would not have been possible. This plugin does not provide any commands or additional functionality beyond what is described in this post. That means that you need another plugin to provide colored names, chat prefixes, and op commands such as /give and /time.​

    The Permissions Team

    The team consists of myself @rcjrrjcr and @TheYeti currently with contributions from @Nijikokun as well on occasion. There are also several other members of the community who frequently assist with providing code changes, bug fixes, patches, support, feedback, and beta testing. Special thanks to @flames and the Dynmap & Wormhole X-Treme teams for the hosting of Permissions on their Jenkins server.

    What's new in 3.x?

    Taken from the GitHub page:
    1. In-game commands. For a long time, users have been pestering, nagging, demanding and/or screaming for an way to manage Permissions via commands. Now, in 3.0, in-game commands are available to manage permissions and groups.
    2. SQL storage. This allows web interfaces to manage Permissions by updating the SQL database Permissions uses.
    3. Promotion/demotion tracks. With a simple command, users can be promoted/demoted along a preconfigured track, allowing RP servers with ranks to promote the player along a class track and other possibilities.
    4. Multigroup.
    5. Weightage. Plugins are able to compare users via their weight, which is inherited from their groups. For example, SlapPlugin can check if Player A is higher-weighted than Player B when A tries to slap B (Not IRL, obviously).
    6. Improved world mirroring. Config files are now split into a group file and a user file. Also, by editing storageconfig.yml, you can configure the mirroring of entire worlds, or just its users/groups. You also do not have to create files for worlds that mirror another world. Also, two different worlds can use different storage types, like YAML and SQL.
    7. Global permissions. Instead of having to resort to cross-world group inheritance, now all worlds inherit groups and users from the global permissions file. Also, the inherited groups/users can be overridden via editing the specific world's file.
    Upgrading from 2.x to 3.x







    I have written a guide on GitHub. This demonstrates how to convert 2.x-style configs to 3.0. The YAML-to-SQL converter are still in testing, but it can be downloaded from here. It's written in Perl. @Zgred has created a web version of the script located here. @omgneeq is working on an Web UI for SQL databases (Sorry about the previous statement that he was making a converter.)​


    Install (open)
    For the admins

    In case you missed the link above, the Setup Guide on GitHub will help you quite a bit

    Samkio has updated his tutorial for P3:


    First thing that you will need to do is download the plugin. Place it in your plugins/ folder and unzip it. This should create the folder Permissions and a Permissions.jar file in your plugins folder. Next, go into Permissions/ and create a folder named the same as your world. So if your world name from server.properties is Foo you will need to create the folder plugins/Permissions/Foo. You MUST rename it to whatever your world's name is or it will not work.

    Note, if you have your server maps all saved into a single directory then the initial setup will be somewhat different. Say your maps are arranged in the main directory like so: bukkit/mapfolder/world1, bukkit/mapfolder/world2, etc. Then inside of the plugin/Permissions directory you will need to create a folder called mapfolder and inside of that put the directories containing users.yml and groups.yml in there.

    Next, you will need to go in and add yourself to the users, just replace the user that is in there with your name. Make any other modifications that you need to. While making modifications make sure that you do NOT use tabs. These will break the YAML format and cause issues. Instead, each indent should be four spaces. If you want people who aren't in the Admin group to be able to reload the permissions plugin you need to give them 'permissions.reload' permissions within the config file.

    Permissions gives server admins great control, mostly in-game reloading. More info about commands can be found here.


    FAQ (open)

    [FAQ]

    [Q] What is with the version numbers? I can't keep up, it seems like every time I look there is a new version!
    [A] I use the GNU versioning system for my version numbers. So what this means is the version number should be read as Major.Minor.Revision. So for version 2.5.2 this would mean it is the 2nd Major version, the 5th Minor release in this version, and the 2nd revision. I tend to release bug fixes and anything that doesn't add functionality or will not break things as revisions. So generally you should be safe with just watching the major & minor numbers and only getting the revision if it fixes a bug specific to you. Technically 2.5.2 should have been released as 2.6 as it did add functionality, but this was below even a minor change so I released it as a revision.

    [Q] I am getting an error that it can't pass BLOCK_PLACED or BLOCK _BREAK events to Permissions. Fix it!
    [A] That's not a question. The reason why it can't place these is probably because the syntax of your Permissions file is all whacked out, or it is a different world and you don't have a config file for that world.

    [Q] What am I suppose to name the config file?
    [A] You need to name it the same as your world. So if you look in server.properties at "level-name" you will see a world name there. Rename your config file to the same thing as that. Make sure you keep the .yml extension at the end.

    [Q] Permissions are broken. Why can no one use commands? Why am I not an admin?
    [A] First off, make sure that your formatting is correct. Look at the format that the default config file uses. Yours should look like that. Do NOT use tabs. Use 4 spaces (IE. " " <-- Four of those things.). Also, whichever group you give the permission '*' to, do not have that group inherit permissions from anyone else. That is called overloading and it will break things. Also, this.


    [Q] Which one am I suppose to download and unzip to install this?
    [A] Download the main package, not the JAR only. Unzip the ZIP file. The JAR only downloads are simply there for people who are UPGRADING and do not need the default config file.

    [Q] I have done all of this and this doesn't work! I'm going back to GroupManager!
    [A] Well, there is probably the problem. Make sure that you delete EssentialsGroupManager.jar and EssentialsGroupBridge.jar as these don't play well with Permissions and will cause headache.

    [Q] When are you going to add <blah> <feature/command> into this already? You suck! Do what I want NAU PL0X!
    [A] Feature requests should be posted on the GitHub tracker. Stupid suggestions like adding teleportation functionality and other less ludicrous stuff will be rejected.



    Changelog
    • 3.1.6
      • Major fixes.
      • Simplify tracks
    Changelog (open)





    • 3.1.5
      • Fix several minor bugs.
      • Autoconvert 2.x/GM format (only works if you split them into groups.yml and users.yml, but leave the rest untouched)
    • 3.1.4
      • Fix YAML locking bugs.
    • 3.1.3
      • Fix another SQL data and inheritance issue.
    • 3.1.2
      • Fix SQL data issues.
      • Added user/group name autocomplete
      • Separated SQL interface into separate plugin
    • 3.1.1
      • Fix prefix/suffix issues.
      • Added ON UPDATE CASCADE to the SQL foreign [/SIZE]
    • 3.1
      • Tons of fixes.
    • 3.0.6
      • Fix SQLite issues due to misimplementation of methods.
    • 3.0.5
      • Fix cache-related NPEs
      • Fixed quoted worlds (thanks again @Jeyge !)
    • 3.0.4
      • Fix LinkageError caused by ServiceManager not unloading the PermissionHandler class.
      • Added cache
      • Fix index not being incremented when promoting (thanks @Jeyge !)
    • 3.0.3
      • Fixed another getGroup bug.
    • 3.0.2
      • Fixed getGroup bug.
    • 3.0.1
      • Fixed some NPE bugs.
    • 3.0
      • Total overhaul of Permissions. Adds many new features (see What's new in 3.0?).
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems








    Credits (open)


    TheYeti:
    Nijikokun - Without their original work this plugin would not be possible.​
    All of the members of the community that regularly provide support in this thread for Permissions​
    Rigby, Kainzo, DThielke, GoMySQL, sk89q, RightLegRed - For hanging out with me in IRC, tons of testing, and pushing me to improve on the code constantly and make changes to make this plugin constantly better and better, and in general being entertaining.​
    Everyone else on here and in IRC who provides support, feedback, assistance, plugins that have continued to support and integrate this, and in general makes my life a bit easier, THANK YOU!​

    rcjrrjcr:
    I would like to thank Joy , jamesg and omgneeq for staying in #permissions for long periods of time to test out 3.0, and help me find many coding mistakes I made, patiently waiting for the next build while I fixed the bugs. I appreciate SvenBrnn 's and GoMySQL(Geoff Winans on this forum) 's help that allow me to design and code the SQL interface, and the HeroCraft coding team for providing support and some priceless IRC quotes (Dgco). Also, I would like to thank Lycano for helping me in many different aspects. Last but not least, I would like to thank Nijikokun and TheYeti for developing P2, which was one of my core plugins when I was still a 14-year-old server admin that didn't understand Java, and was the base for 3.0. Without these people, 3.0 would never be possible.​


    If after reading through all of that you are still having issues do one of two things. If it is a provable bug, and you have things like screenshots or copies of startup, steps to reproduce, your craftbukkit build and the version this is running along with your config files then submit the bug on the issue tracker. If it is general help or support you are needing then post a reply to this thread and someone will try to help you.

    Old thread: Permissions v2.7.4
     
  2. Offline

    ACStache

    this is the important bit. This is saying that you have '\t' characters, or tabs, in your config files. Remove all tabs and replace them with 4x spaces, then retry your server :)

    many people are using it on build 1000 already. there have been reported issues using 3.1.6, but people use 3.1.5 on build 1000 as well (myself included for 3.1.5). what's keeping you from upgrading?

    post your groups.yml and users.yml from your "/plugins/Permissions/worldname" folder. if you can't build or destroy, it's most likely a syntax error. Also, post any errors you have in your server.log

    what's not working? post the same stuff requested above

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 10, 2018
    dave47561879 likes this.
  3. Offline

    dave47561879

    that worked perfectly! dont know how i missed that..... THANK YOU SO MUCH!
     
    ACStache likes this.
  4. disallowed bump to my question
     
  5. Offline

    dave47561879

    One last question.... in the globalgroups file, i set color prefixes to all the groups. i know you need a plugin to get that working. my question is which plugin do you recommend how how do you get it to display what you configured in the globalgroups?
     
  6. Offline

    kevinkrw

    I am upgraded to build 1000 on my server, but Permissions for build 1000 isn't out yet.
     
  7. Offline

    ACStache

    I don't use chat programs, so my prefixes/suffixes are blank. sorry
     
  8. Offline

    Jeyge

    As with every other post like this, you will need to post the problems with CB 1000 for anyone to know what needs to be updated. If there aren't any problems, then why does there need to be an update.
    You are missing a closing quote on line 71.
    Code:
                - 'McMMO.skills.*
    
    I'm pretty sure this was asked for in the requests section and I seem to remember that a plugin dev made it. You might want to search there.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  9. Offline

    minikyuubi

    Im currently getting the error

    can someone help me? i cant figure it out cause I'm a noob :(

     
  10. Offline

    ACStache

    move -worldguard.stack in the Member group to it's own line so it's:
    Code:
    permissions:
        - worldguard.stack
    
     
  11. Offline

    minikyuubi

    how would i move it to its own line? im using notepad so its like all jumbled up
     
  12. Offline

    ACStache

    download notepad++, it's free, and awesome for editing yml files. regular notepad doesn't process line breaks properly, and you get something that's all jumbled up

    quote from the Wiki/FAQ for once you get notepad++ (to ensure you don't accidentally use tabs)
     
  13. Offline

    Unlucky4ever

    I'm testing the SQL permissions on my dev server, and I got them working and all, but what about prefixes/suffixes? How do you add them to the database.
     
  14. Knew it. this one was skipped by my eye.
     
  15. Offline

    dave47561879

    ugh. new problem. i feel like an idiot lol. all errors are gone, but its not letting anyone build. everyone has build set to true so i have no idea what the problem is.
     
  16. Offline

    Brianbloke


    I got it working eventually, I forgot to name the folder as my world name. I deleted it by accident and forgot I done that lol.
     
  17. Offline

    expresstaxi

    Hey i tryed your pluggin every thing works great, but im having one problem i can seem to fix. i cant build at all. i did build: true and everything. please help!
     
    dave47561879 likes this.
  18. Offline

    minikyuubi

    now its saying
    (arrow should be over the : where groups is)
    whats this mean i checked it in notepad ++ and doesnt look like anythings wrong
     
  19. Offline

    ACStache

    @minikyuubi instead of doing a quote, use the button right next to it that looks like {}#, that's the code thing people use, and it keeps spacing :)
    now the question is, can you post your groups file in a code block so we can see the spacing how it should be? that might lead us to finding your problem :)

    that I believe is used for the built in permissions that came along with RB1000, you can safely ignore that message for now. I've been running 3.1.5 since RB1000 came out and my file is blank still.

    can you put that in a code block (the symbol that looks like {}#), or use pastebin.com, to have it keep it's spacing? otherwise we can't tell what's what :-/

    although... looking at it briefly the build: true bit isn't in the info: section. it should look like:
    Code:
            info:
                prefix: '&f'
                build: true
                suffix: ''
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  20. Offline

    minikyuubi

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'admincmd.spawn.tp'
                - 'admincmd.tp.home'
                - 'admincmd.warp.tp'
                - 'worldguard.stack'
                - 'admincmd.player.list'
                - 'admincmd.player.clear'
                - 'admincmd.player.msg'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'worldguard.region.select.*'
                - 'worldguard.region.flag.*'
                - 'bb.admin.info'
                - 'bb.admin.watch'
                - 'worldguard.region.redefine.*'
                - 'admincmd.player.np'
                - 'worldguard.region.member.*'
                - 'admincmd.player.mute'
                - 'worldguard.region.define.*'
                - 'admincmd.player.freeze'
                - 'worldguard.region.claim.*'
                - 'admincmd.player.kick'
                - 'admincmd.server.extinguish'
                - 'admincmd.player.ban'
                - 'worldguard.region.remove.*'
                - 'bb.admin.rollback'
                - 'worldguard.locate'
                - 'worldguard.region.setpriority.*'
                - 'worldguard.region.remove.*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Moderator
            permissions:
                - 'worldguard.region.bypass.world_nether'
                - 'admincmd.*'
                - 'worldguard.region.bypass.world'
                - 'admincmd.invisible.cansee'
                - 'worldguard.player.bypass-
                - 'permissions.promote'
                - 'permissions.demote
     
  21. Offline

    expresstaxi

    Hey i tryed your pluggin every thing works great, but im having one problem i can seem to fix. i cant build at all. i did build: true and everything. please help!​
     
    dave47561879 likes this.
  22. Offline

    jacob_813

    i set up permissions while using build 1000 and when i start the server it says "permissions file empty, ignoring" or something very close to that. i don't know how to copy what it said exactly but that is close to it. i think its because of the permissions.yml file build 1000 has. it wont work unless something correct is put in it. what should i put there? thanks
     
  23. Offline

    ACStache

    @minikyuubi hmm... your group files seems fine. Post your users.yml file, your error referred to line 3 and said groups:
    your users.yml file should have groups: on line 3, so that's the next place to check. post that here and lets have a look :)

    @expresstaxi are you getting any errors in the server.log on server start up or any at all? what do your permission files look like? post them in code blocks or a pastebin link
     
  24. Offline

    expresstaxi

    groups:
    Admin:
    info:
    prefix: '&c'
    permissions:
    - '*'
    inheritance:
    - Mod
    build: true
    Member:
    info:
    prefix: '&3'
    permissions:
    - essentials.help
    - 'essentials.msg'
    - 'essentials.rules'
    - 'essentials.nick'
    - 'essentials.whois'
    - 'essentials.helpop'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.list'
    - 'essentials.me'
    - 'essentials.motd'
    - 'essentials.afk'
    - 'essentials.getpos'
    - 'essentials.compass'
    - 'essentials.suicide'
    - 'essentials.tpa'
    - 'essentials.tpdeny'
    - 'essentials.portal'
    - 'essentials.back.ondeath'
    - 'essentials.tpahere'
    - 'essentials.sethome'
    - 'essentials.home'
    - 'essentials.tpaccept'
    - 'essentials.spawn'
    inheritance:
    - Guest
    build: true
    Mod:
    info:
    prefix: '&c'
    permissions:
    - 'essentials.unban'
    - 'essentials.kick'
    - 'essentials.mute'
    - 'essentials.tempban'
    - 'essentials.ban'
    inheritance:
    - Member
    Guest:
    default: true
    info:
    prefix:
    suffix:
    permissions:
    - 'essentials.ping'
    - 'essentials.spawn'
    - 'essentials.help'
    - 'essentials.motd'
    - 'essentials.warp'
    - 'essentials.warp.list'
    inheritance:
    build: true
     
  25. Offline

    jacob_813

    thank you
    :)
     
  26. Offline

    minikyuubi

    Code:
    users:
        TheServerOwner:minikyuubi
            groups:
            - Admins
            permissions:
        FriendA:
            info:
                prefix: '&4[~Alice~]&f'
            groups:
            - Moderator
            permissions:
        FriendB:
            groups:
            - Moderator
            permissions:
            - warpplugin.manage.*
        NewGuy:
            groups:
            - Guest
        Herpina:
            groups:
            - Member
        Derpina:
            groups:
            - Member
        minikyuubi:
            permissions:
            groups:
            - Owner
        Viper_killer16:
            permissions:
            groups:
            - Moderator
    
     
  27. Offline

    expresstaxi

    Code:
    groups:
        Admin:
            info:
                prefix: '&c'
            permissions:
            - '*'
            inheritance:
            - Mod
            build: true
        Member:
            info:
                prefix: '&3'
            permissions:
            - essentials.help
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.nick'
                - 'essentials.whois'
                - 'essentials.helpop'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.list'
                - 'essentials.me'
                - 'essentials.motd'
                - 'essentials.afk'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.suicide'
                - 'essentials.tpa'
                - 'essentials.tpdeny'
                - 'essentials.portal'
                - 'essentials.back.ondeath'
                - 'essentials.tpahere'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.tpaccept'
                - 'essentials.spawn'
            inheritance:
                - Guest
            build: true
        Mod:
            info:
                prefix: '&c'
            permissions:
            - 'essentials.unban'
            - 'essentials.kick'
            - 'essentials.mute'
            - 'essentials.tempban'
            - 'essentials.ban'
            inheritance:
            - Member
        Guest:
            default: true
            info:
                prefix:
                suffix:
            permissions:
                - 'essentials.ping'
                - 'essentials.spawn'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.warp'
                - 'essentials.warp.list'
            inheritance:
            build: true
     
  28. Offline

    ACStache

    yea... it is the "build: true" is in the wrong spot, you have to put it under the "info:" spot like:
    although... looking at it briefly the build: true bit isn't in the info: section. it should look like:
    Code:
            info:
                prefix: '&f'
                build: true
                suffix: ''
    
    give that a try and see what happens

    so, on line 2 you have "TheServerOwner:minikyuubi"
    you need to change that to just "minikyuubi:" and you should be good to go
    granted your MC name is also minikyuubi :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  29. Offline

    expresstaxi

    when i load server it comes as errors but in game it works perfectly.
     
  30. Offline

    ACStache

    what are the errors?
     
  31. Offline

    expresstaxi

    nvm thanks guys i got it! you are all great!
     
Thread Status:
Not open for further replies.

Share This Page