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

    obscurehero

    Ok will test. I'll get back to you.

    EDIT: @Jeyge - Works great. mcMMO claims that it doesn't play nice with 3.1.6 but I've yet to see an issue. The promoting demoting works fine again for me. One issue (not a bug) is that you can demote someone off a track. That is, you can demote someone on track 2 from D to nothing...at which point you'll need to delete the user and have them rejoin and promote them back up again. Maybe something to fix? Have it check to see at what point a user in in a track and only allow promotion/demotion within a track. Also I have to type their current group everytime, it doesn't auto-include it. Finally, it'd be nice to have an in-game command to simply set a user's group. Is that possible? I like tracks well enough, but that'd be a nice companion to the tracks command.
     
  3. Offline

    HolyThunder

    Here's my last server log *only contains the content from the last time I started it up*, should help, I saw some stuff in there but I don'tr really now how to fix them. I put it here http://pastebin.com/fefXRapY because it was huge.

    Please help.
     
  4. Offline

    Jeyge

    The error is caused by plugins requesting not only Permissions but also a specific version of Permissions. In this case, the 2.x version. Now it took a while to get all of those plugins to update to either not require a version or at least support both 2.x and 3.x, but all changes have been made finally. Help and MyHome being the last 2 but there sure could be others that the Permissions team wasn't aware of.

    As for your last question, MyHome and Help are both plugins. You don't need to install them but instead fix them if you have them on your machine. If not, then ignore them.
     
  5. Offline

    blackopsucks

    Permissions Files:
    Groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'essentials.spawn'
    - 'essentials.home'
    - 'essentials.sethome'
    - 'essentials.sign.use.*'
    - 'iConomy.payment'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    - 'iConomy.payment'
    - 'iConomy.access'
    Owner:
    default: false
    info:
    prefix: '&1'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    Co-Owner:
    default: false
    info:
    prefix: '&e'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    Users:
    blackopsucks:
    groups:
    - Default
    permissions:
    bac12:
    groups:
    - Co-Owner
    permissions:

    Dont know what server log you want me to post.
     
  6. Offline

    Jeyge

    You have a tab on or around line 51 that needs to be replaced with 4 spaces. You should also replace all other tabs at the same time. YAML only works with spaces and will throw errors if it finds tabs.

    You have been asked repeatedly to post in either code tags or on pastebin.com. Without spaces, that blob of text is worthless and is just taking up space in here. If you don't understand what code tags are, look in the toolbar at the top of the area we type in and you will see a button that looks like {} and/or pastebin.com is a website that lets you paste stuff with formatting.

    Also, this has been going on for a while now and you refuse to answer questions. Are your users actually able to use all commands or are they just seeing them in help but can't actually use them. If they can use them, then they are most likely OPs and need to be removed from the ops.txt file.

    There is only one server.log per server.

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

    HolyThunder

    ooops....Just read the server.log and found it.......................... what a nab........ I did use spaces, but when I saved it it must have converted them to indentations or something... My server's down now, but I reckon it'll be working. I'll say something if it works. Thanks guys!
     
  8. Offline

    Jeyge

    Ouch, I just confirmed the demote bug. Create an Issue on the Permissions GitHub and the dev should get to it at some point.

    One thing you can do to set a group is use "/pr <user> (w:<world>) parents add <group>". That would be one way to fix the complete loss of a group in the case of the demotes. It also works for any user that doesn't have a group. When someone has a group, then you will also need to do a "parents remove" to remove the old group.
     
  9. Offline

    obscurehero

    Sweet! I will likely make an alias for this with CommandHelper for my admins...but this sounds like a perfect solution!

    I'll submit the bug on GitHub.
     
  10. Offline

    Qhran

    I get errors with the permissions I dont seem to be able to build with anything but I am able to destroy dirt.

    Here is the users.yml :


    and here is the groups.yml

    and when I open the server it gives no errors. I don't know what is wrong but something obviously is so anyone, can you please help me?

    Well, I get no errors at all, it just says this:

    Code:
    151 recipes
    16 achievements
    22:13:59 [INFO] Starting minecraft server version Beta 1.7.2
    22:13:59 [WARNING] **** NOT ENOUGH RAM!
    22:13:59 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    22:13:59 [INFO] Loading properties
    22:13:59 [INFO] Starting Minecraft server on *:25565
    22:13:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-
    g9277096-b953jnks (MC: 1.7.2)
    22:14:00 [INFO] [Permissions] (Yeti) was initialized.
    22:14:00 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    22:14:00 [INFO] Preparing level "world"
    22:14:00 [INFO] Preparing start region for level 0 (Seed: 3670135140005075757)
    22:14:01 [INFO] Preparing spawn area: 32%
    22:14:02 [INFO] Preparing start region for level 1 (Seed: -6963313983826730371)
    22:14:02 [INFO] Preparing spawn area: 0%
    22:14:03 [INFO] Preparing spawn area: 81%
    22:14:04 [INFO] [Permissions] SQL Interface enabled!
    22:14:04 [INFO] Done (0,388s)! For help, type "help" or "?"
    Ok this time I poste it all in code.

    The groups.yml in the world folder:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'warpplugin.warp'
                - 'econplugin.basic.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'modplugin.ban'
                - 'modplugin.kick'
                - 'modplugin.unban'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    and the users.yml in the world folder:

    Code:
    users:
        TheServerOwner:
            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
        Tallahassee:
            groups:
            - Admins
            permissions:
    
    and the console when entering and reloading:

    Code:
    151 recipes
    16 achievements
    22:13:59 [INFO] Starting minecraft server version Beta 1.7.2
    22:13:59 [WARNING] **** NOT ENOUGH RAM!
    22:13:59 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    22:13:59 [INFO] Loading properties
    22:13:59 [INFO] Starting Minecraft server on *:25565
    22:13:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-
    g9277096-b953jnks (MC: 1.7.2)
    22:14:00 [INFO] [Permissions] (Yeti) was initialized.
    22:14:00 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    22:14:00 [INFO] Preparing level "world"
    22:14:00 [INFO] Preparing start region for level 0 (Seed: 3670135140005075757)
    22:14:01 [INFO] Preparing spawn area: 32%
    22:14:02 [INFO] Preparing start region for level 1 (Seed: -6963313983826730371)
    22:14:02 [INFO] Preparing spawn area: 0%
    22:14:03 [INFO] Preparing spawn area: 81%
    22:14:04 [INFO] [Permissions] SQL Interface enabled!
    22:14:04 [INFO] Done (0,388s)! For help, type "help" or "?"
    >reload
    22:19:17 [INFO] [Permissions] (Yeti) saving data...
    22:19:17 [INFO] [Permissions] (Yeti) saved all data.
    22:19:17 [INFO] [Permissions] (Yeti) disabled successfully.
    22:19:17 [INFO] [Permissions] SQL Interface disabled!
    22:19:17 [INFO] [Permissions] (Yeti) was initialized.
    22:19:17 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    22:19:17 [INFO] [Permissions] SQL Interface enabled!
    22:19:17 [INFO] Reload complete.
    The problem was that I am not able to place any form of block. I am not able to destroy or gather any kind of block except for dirt.

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

    obscurehero

    Um, can you use pastebin or a "Code Box". Also, I'm not getting any of your pasted server messages or your groups.yml.
     
  12. Offline

    pazdowg

    thanks!!
     
  13. Offline

    blackopsucks

    I really need help :(
     
  14. Offline

    ryladine

    I'm using /pr ryladine promote Admins
    /permissions ryladine promote Admins

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Member
            permissions:
            - modplugin.kick
            - worldedit.*
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
        Accepted:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - warpplugin.warp
            - econplugin.basic.*
    
    
    I just noticed something removed the prefix's and the suffix's don't know what did that
     
  15. Offline

    obscurehero

    You haven't set up tracks

    Try something like this
    Code:
    tracks:
        MainTrack:
        - Guest
        - Builder
        - Craftsman
        - SuperBuilder
        - MiniMod
        AdminTrack:
        - MiniMod
        - Mod
        - Admin
        - SuperAdmin
    You'll need this in your world's groups.yml file anywhere, but preferably at the end.

    Then you'll want to do something like this /pr <username> promote/demote t:<trackname> <currentgroup> w:<world>

    For example if obscurehero is a SuperAdmin and I want to demote him to Admin.

    /pr obscurehero demote t:AdminTrack SuperAdmin w:TestWorld

    The users.yml for TestWorld will now reflect this and show me as an Admin in my groups: designation.

    If I was a SuperAdmin and I typed t:MainTrack...it wouldn't work.

    A sample complete groups.yml file from one of my worlds:
    Show Spoiler

    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: '&f[&fGuest&f]&f'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'lwc.blockinventory'
                - 'commandbook.rules'
                - 'commandbook.motd'
                - 'commandbook.spawn'
                - '-mcmmo.*'
        Builder:
            default: false
            info:
                prefix: '&f[&fBuilder&f]&f'
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
                - 'goldstandard.sell'
                - 'goldstandard.buy'
                - 'goldstandard.worth'
                - 'lwc.protect'
                - 'iConomy.payment'
                - 'iConomy.bank.join'
                - 'myhome.home.basic.*'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'multiverse.world.spawn'
                - 'multiverse.portal.list'
                - 'multiverse.world.list'
        Craftsman:
            default: false
            info:
                prefix: '&f[&fCraftsman&f]&f'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'mywarp.warp.basic.warp'
                - 'mywarp.warp.basic.list'
                - 'myhome.home.soc.*'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.create.*'
                - 'iConomyChestshop.command.iteminfo'
        SuperBuilder:
            default: false
            info:
                prefix: '&f[&fSupBuild&f]&f'
                suffix: ''
                build: true
            inheritance:
                - Craftsman
            permissions:
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'worldguard.locate'
                - 'worldguard.region.info'
                - 'commandbook.msg'
                - 'worldguard.stack'
                - 'goldstandard.history'
                - 'mywarp.warp.basic.*'
        MiniMod:
            default: false
            info:
                prefix: '&a[&aMiniMod&a]&f'
                suffix: ''
                build: true
            inheritance:
                - SuperBuilder
            permissions:
                - 'permissions.list.users'
                - 'iConomy.bank.access'
                - 'iConomy.access'
                - 'mywarp.warp.*'
                - 'commandbook.whereami.*'
                - 'commandbook.call'
                - 'worldguard.fire-toggle.stop'
        Mod:
            default: false
            info:
                prefix: '&b[&bMod&b]&f'
                suffix: ''
                build: true
            inheritance:
                - MiniMod
            permissions:
                - 'commandbook.slap'
                - 'lwc.mod'
                - 'commandbook.weather'
                - 'commandbook.weather.*'
                - 'commandbook.mute'
                - 'commandbook.kick'
                - 'worldguard.heal'
                - 'worldedit.fixwater'
                - 'worldedit.fixlava'
                - 'worldedit.unstuck'
                - '-mccmo.*'
        Admin:
            default: false
            info:
                prefix: '&d[&dAdmin&d]&f'
                suffix: ''
                build: true
            inheritance:
                - Mod
            permissions:
                - 'commandbook.time'
                - 'myhome.admin'
                - 'permissions.reload.*'
                - 'permissions.demote.MainTrack'
                - 'permissions.promote.MainTrack'
                - 'worldedit.wand'
                - 'worldedit.wand.*'
                - 'worldedit.selection.*'
                - 'worldguard.region.*'
                - 'commandbook.clear'
                - 'commandbook.shock'
                - 'worldguard.slay.*'
                - 'worldguard.heal.*'
                - 'iConomy.*'
                - 'iConomyChestShop.admin'
                - 'lwc.admin'
                #- 'commandbook.more.*'
                #- 'commandbook.give.*'
                - 'commandbook.time.*'
                - 'commandbook.kit.*'
                - 'commandbook.teleport.*'
                - 'commandbook.return'
                - 'commandbook.broadcast'
                - 'commandbook.bans.ban'
                - 'commandbook.bans.isbanned'
                - -worldguard.region.bypass.*
        SuperAdmin:
            default: false
            info:
                prefix: '&d[&dAdmin&d]&f'
                suffix: ''
                build: true
            inheritance:
                - Admin
            permissions:
                - '*'
                - '-mcmmo.*'
    tracks:
        MainTrack:
        - Guest
        - Builder
        - Craftsman
        - SuperBuilder
        - MiniMod
        AdminTrack:
        - MiniMod
        - Mod
        - Admin
        - SuperAdmin
     
  16. Offline

    palz2015

    OK, I have 4 worlds (soon 3.) 1. Normal world (original, pre-multiverse). 2. Nether. 3. Creative (flatgrass map). 4. Survival (seed map, normal). I want them all to have the same permissions, but each has its on ADDITIONAL permissions. Also users need to be in the same group for all. How would I do this?
     
  17. Offline

    ACStache

    @palz2015
    easiest I believe would be to use world-inheritance: in the storageconfig.yml (info on that is in the wiki)

    the other, better (once it's working 100%) option would be to use global permissions. I've got them working for me, but I don't have new users coming often, so I don't have the issue with default group not being tacked onto each user. at that point you can then specify in the world permissions to use the global ones and add more in each world. I made a post about it back on page 133

    hope this helps :)
     
  18. Offline

    jasvecht

    This is odd. One of my groups, Moderators, seems to kick its members out randomly. As in, I can add people to it, but they get removed on next logon...
     
  19. Offline

    hellsome

    my permissions has this error that comes up when i load my server... is it a problem because i dont think permissions is working although im not positive that it isnt working.. is there anyway that i can check if permissions is working?


    Code:
    2011-07-12 11:18:43 [SEVERE] [Permissions] Unable to load permission data.
    2011-07-12 11:18:43 [SEVERE] [Permissions] Shutting down Permissions due to error(s).
    2011-07-12 11:18:44 [INFO] [Permissions] (Yeti) was initialized.
    2011-07-12 11:18:44 [INFO] [Permissions] (Yeti) disabled successfully.
    2011-07-12 11:18:44 [INFO] Preparing level "Main_Spawn"
    2011-07-12 11:18:44 [INFO] Preparing start region for level 0 (Seed: 3850433055)
    2011-07-12 11:18:45 [INFO] Preparing spawn area: 73%
    2011-07-12 11:18:45 [INFO] AntiCreeper v1.5 (with AntiTNT) - by Rothens
    2011-07-12 11:18:45 [INFO] Anticreeper v1.5 (with AntiTNT) - STARTED
    2011-07-12 11:18:45 [INFO] AntiHack version 2.0 is enabled with permissions!
    2011-07-12 11:18:45 [SEVERE] Error occurred while enabling AutoMessage v1.5 (Is it up to date?): 1
    java.lang.ArrayIndexOutOfBoundsException: 1
        at uk.co.mdtechnology.automessage.AutoMessage.loadData(AutoMessage.java:79)
        at uk.co.mdtechnology.automessage.AutoMessage.onEnable(AutoMessage.java:41)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-12 11:18:45 [INFO] [bColoredChat] Permission system found
    2011-07-12 11:18:45 [INFO] [bColoredChat] version 2.1.0 is enabled!
    2011-07-12 11:18:45 [INFO] [BBROTHER] ------------------------------------
    2011-07-12 11:18:45 [INFO] [BBROTHER] Hello, and thank you for using the TESTING version of BigBrother!
    2011-07-12 11:18:45 [INFO] [BBROTHER] Please note that, since this is far from complete, there will be many bugs.
    2011-07-12 11:18:45 [INFO] [BBROTHER] IF YOU FIND ANY BUGS, PLEASE REPORT THEM ON http://bugs.nexisonline.net/bb
    2011-07-12 11:18:45 [INFO] [BBROTHER] Please stay tuned in irc.esper.net #bigbrother for updates and build notifications.
    2011-07-12 11:18:45 [INFO] [BBROTHER] ------------------------------------
    2011-07-12 11:18:48 [INFO] [BBROTHER] Building `bbdata` table...
    2011-07-12 11:18:59 [INFO] [BBROTHER] BBData H2 Driver r1 loaded!
    2011-07-12 11:18:59 [INFO] [BBROTHER] Building `bbworlds` table...
    2011-07-12 11:18:59 [INFO] [BBROTHER] Building `bbusers` table...
    2011-07-12 11:18:59 [INFO] [BBROTHER] Permissions plugin found but disabled. Enabling 'Permissions' (v3.1.6).
    2011-07-12 11:18:59 [INFO] [Permissions] (Yeti) disabled successfully.
    2011-07-12 11:18:59 [INFO] [BBROTHER] Permissions enabled using: Permissions v3.1.6
     
  20. Offline

    ryladine

    Alright, I'll be sure to try that. What exactly are the tracks for though? And why did the original file it said to start with not mention them? (I may have missed it, but I don't think so.) I'd like to know what they are for so I understand how to make it for my groups file a bit better, with less confusion. (and because I'm nosy XD)
     
  21. Offline

    obscurehero

    they are for promoting and demoting...you'll have no need if you use Jeyge's command that he listed on the previous page.

    OR you can be even lazier (although it might be more difficult in the long run due to plugin updates etc.) and use permissions plus. I like using one plugin to handle permissions to reduce bloat, decrease incompatability/clashing etc, and streamline use. I like CommandHelper to simplify these commands.

    Ultimately, changing groups is nice to reward donors, punish users, promote trusted users to moderate in your absence, you name it. Its nice to be able to do this in-game...however I think you can change these easily on a dedicated server by using MySQL and just logging into the database. As usual, there are a 1001 ways to skin a cat.

    What kind of output do you get when you type the promote command? Also, I'm not sure I would start my group names with the '$' sign as I'm not sure what symbols do. Someone who writes this plugin might be able to comment on this.

    When you test, you're not an op, right?

    Otherwise, it looks like its formatted fine. What permissions version are you using, and what does your users.yml file look like for your default world?

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

    blackopsucks

    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - essentials.home
    - essentials.sethome
    - essnetials.spawn
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    - 'iConomy.payment'
    - 'iConomy.access'
    Owner:
    default: false
    info:
    prefix: '&1'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    Co-Owner:
    default: false
    info:
    prefix: '&e'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'

    Server Log
    2011-07-12 15:04:03 [INFO] Starting minecraft server version Beta 1.7.2
    2011-07-12 15:04:03 [INFO] Loading properties
    2011-07-12 15:04:03 [INFO] Starting Minecraft server on *:25565
    2011-07-12 15:04:03 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    2011-07-12 15:04:04 [INFO] DataSourcePool [ChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-12 15:04:04 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-07-12 15:04:04 [INFO] Entities enhanced[0] subclassed[1]
    2011-07-12 15:04:05 [INFO] Preparing level "world"
    2011-07-12 15:04:05 [INFO] Preparing start region for level 0 (Seed: -4898580307706487108)
    2011-07-12 15:04:06 [INFO] Preparing spawn area: 61%
    2011-07-12 15:04:06 [INFO] Preparing start region for level 1 (Seed: -4898580307706487108)
    2011-07-12 15:04:07 [INFO] Preparing spawn area: 24%
    2011-07-12 15:04:08 [INFO] [AncientGates v1.0.2] Loading conf from disk
    2011-07-12 15:04:08 [INFO] [AncientGates v1.0.2] Loading gates from disk
    2011-07-12 15:04:08 [INFO] [AncientGates v1.0.2] Enabled
    2011-07-12 15:04:08 [INFO] [ChestShop] version 3.00 BETA 8 initialized!
    2011-07-12 15:04:08 [INFO] [ChestShop] iConomy 5 loaded.
    2011-07-12 15:04:08 [INFO] [ChopTree] Permissions not detected, defaulting to ops.
    2011-07-12 15:04:08 [INFO] ChopTree 1.23 enabled!
    2011-07-12 15:04:08 [INFO] Elevators version 1.4.3 is enabled! 1 elevator in worlds "world", "world_nether" loaded.
    2011-07-12 15:04:08 [WARNING] Version mismatch! Please update EssentialsSpawn to the same version.
    2011-07-12 15:04:08 [INFO] Loaded Essentials build 2.3.3 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-12 15:04:09 [INFO] [iConomy] Logging is currently disabled.
    2011-07-12 15:04:09 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-07-12 15:04:09 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-07-12 15:04:09 [INFO] [Essentials] Payment method found (iConomy version: 5)
    2011-07-12 15:04:09 [SEVERE] Error occurred (in the plugin loader) while enabling Essentials v2.3.3 (Is it up to date?): null
    java.util.ConcurrentModificationException
    at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100)
    at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:319)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:864)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-12 15:04:09 [WARNING] Version mismatch! Please update all Essentials jars to the same version.
    2011-07-12 15:04:09 [INFO] Loaded EssentialsSpawn build 2.4.2 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] === INIT START ===
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] Loading conf from disk
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] Loading players from disk
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] Loading factions from disk
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] Loading board from disk
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] Permission system not detected, defaulting to OP
    2011-07-12 15:04:09 [INFO] [Factions v1.3.0] === INIT DONE (Took 143ms) ===
    2011-07-12 15:04:09 [INFO] [FalseBook Block] No Books loaded!
    2011-07-12 15:04:09 [INFO] FalseBookBlock v0.86.2alpha by GeMo enabled
    2011-07-12 15:04:09 [INFO] [FalseBook Block] No Cauldrons loaded!
    2011-07-12 15:04:09 [INFO] [FalseBook Core] FalseBookCore v0.86.2alpha by GeMo enabled!
    2011-07-12 15:04:09 [INFO] [HeroicDeath] 1.8.1.156 enabled.
    2011-07-12 15:04:11 [INFO] SpyerAdmin has completed updating the script successfully.
    2011-07-12 15:04:11 [INFO] SpyerAdminCommands module version 1.4 stable, a spying utility for administrators and moderators (CommandBook commands module), is active. Part of the Spyer package by [nickguletskii200]
    2011-07-12 15:04:11 [INFO] SpyerFun module version 1.3_3 stable, a spying utility for normal players, is active. Part of the Spyer package by [nickguletskii200]
    2011-07-12 15:04:11 [INFO] WorldEdit 4.6 enabled.
    2011-07-12 15:04:11 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permissions.
    2011-07-12 15:04:11 [INFO] SpyerAdmin module version 1.4 stable, a spying utility for administrators and moderators (main module), is active. Part of the Spyer package by [nickguletskii200]
    2011-07-12 15:04:11 [INFO] Done (0.669s)! For help, type "help" or "?"
    2011-07-12 15:04:12 [INFO] [FalseBook Block] 0 Areas loaded.
    2011-07-12 15:04:12 [INFO] [FalseBook Block] 0 Bridges successfully loaded.
    2011-07-12 15:04:12 [INFO] [FalseBook Block] 0 Doors successfully loaded.
    2011-07-12 15:04:12 [INFO] [FalseBook Block] Gates successfully loaded.
    2011-07-12 15:04:13 [INFO] IcyBstar [/24.113.174.239:64159] logged in with entity id 397 at ([world] 13.5, 65.0, 40.5)

    I know, i need to fix that Essentials error. But i need help for the Default problem. i want them to have 5 commands, but they have 19 pages of functional commands. I ONLY WANT THEM TO HAVE 5! I have treid everything! Nothing works!
     
  23. Offline

    Jeyge

    PermissionsPlus is great if you don't like the current Permissions commands and don't want to wait for the command restructuring which is why I added a note about it in the wiki FAQ.
     
  24. Offline

    hellsome

    also in my group.yml file looks like this


    Code:
    track:
        MainTrack:
        - Guest
        - Member
        - $5Donator
        - $10Donator
        - $20Donator
        - $50Donator
        - Admin
        - Owner
    groups:
        Guest:
            default: true
            info:
                prefix: '&dnoob'
                suffix: '&4'
                build: false
            inheritance:
            permissions:
    
        Member:
            default: false
            info:
                prefix: '&2member'
                suffix: '&4'
                build: true
            inheritance:
            permissions:
                - 'slowhealth'
                - 'myhome.home.basic.*'
                - 'myhome.home.soc.*'
                - 'movecraft.aircraft.*'
                - 'movecraft.car.*'
                - 'movecraft.boat.sail'
                - 'movecraft.boat.info'
                - 'sag.blacklist.place.ID'
                - 'sag.blacklist.break.ID'
    
        $5Donator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
        $10Donator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
        $20Donator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
        $50Donator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
        Owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    obviousely its not done yet but when i log on and trry it as guest i can still break blocks but i cant place blocks also btw i want to not be able to break anything... but i can :(
    and when i try to use /pr <username> promote/demote t:<trackname> <currentgroup> w:<world> it doesnt do anything!
     
  25. Offline

    Jeyge

    1) You aren't even running Permissions.
    2) Have you read anything that anyone has said to you? Post that crap in code blocks or on pastebin.com.
    3) Pages of what? Help? Because you can't have pages of commands.
     
  26. Offline

    Enderr

    Having problems with my config file for groups.
    After i added nodes for my builder group citizens stopped working.

    Can anyone find errors in my file?

    http://pastebin.com/zRPn36tC


    Code:
    12.07 22:22:39 [Server] SEVERE     at java.lang.ClassLoader.loadClass(Unknown Source)
    12.07 22:22:39 [Server] SEVERE     at java.lang.ClassLoader.loadClass(Unknown Source)
    12.07 22:22:39 [Server] SEVERE     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    12.07 22:22:39 [Server] SEVERE     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    12.07 22:22:39 [Server] SEVERE     at java.net.URLClassLoader.findClass(Unknown Source)
    12.07 22:22:39 [Server] SEVERE     at java.security.AccessController.doPrivileged(Native Method)
    12.07 22:22:39 [Server] SEVERE     at java.net.URLClassLoader$1.run(Unknown Source)
    12.07 22:22:39 [Server] SEVERE Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    12.07 22:22:39 [Server] SEVERE     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    12.07 22:22:39 [Server] SEVERE     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    12.07 22:22:39 [Server] SEVERE     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    12.07 22:22:39 [Server] SEVERE     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.Citizens.onCommand(Citizens.java:193)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.resources.sk89q.CommandsManager.execute(CommandsManager.java:406)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:451)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.resources.sk89q.CommandsManager.hasPermission(CommandsManager.java:554)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.resources.sk89q.CitizensCommandsManager.hasPermission(CitizensCommandsManager.java:22)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.Permission.canUse(Permission.java:58)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.Permission.isAdmin(Permission.java:33)
    12.07 22:22:39 [Server] SEVERE     at com.citizens.Permission.permission(Permission.java:67)
    12.07 22:22:39 [Server] SEVERE java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
     
  27. Offline

    hellsome

    ok i will change the dollar signs and also yes i make sure that i am not op every time before i test it. when i type the promote command in it doesnt chow any errors in the command muduel it opnly shows EXACTLY what i just wrote...I am Using permissions 3.1.6.... also i noticed one thing when i first put in permissions.jar and resstarted my folder it came up with a permissions folder however there was only storageconfig yml file that showed up so i had to make a new folder and name it one of my worlds then i put the groups.yml and users.yml into that folder... here is what my users.yml looks like this:
    Code:
    users:
        Hellsome:
            groups:
                - Member
     
  28. Offline

    obscurehero

    Hmm. It should auto-make the world folders as they are created. It should also make the users and groups.yml file. At least that's been my experience. Looking at my users.yml I'm noticing that the '-' for the group is actually flush with groups.

    Like this:
    Code:
    users:
        Hellsome:
            groups:
            - Member
    not sure if that will change anything
     
  29. Offline

    Ehkz

    I'm having trouble figuring out what is wrong, I'm the owner of the server so I made my globalUser.yml:

    Code:
    users:
        Ehkz:
            groups:
            - Admins
            permissions:
            - '*'
    My globalGroups.yml looks like
    Code:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    From what I've read, the -'*' denotes that you have ALL permissions, yet I barely have any.. can anyone help?

    Edit: I looked through the console and it says that worldguard and worldedit aren't picking up that there is a permissions plugin, although my others are, why aren't they?
     
  30. Offline

    obscurehero

    don't use global
     
  31. Offline

    dbizzzle

    Okay so, how do you colour the prefixes because for example my group users comes up like this "&E[Us er]&E" (not the space, it was messing it up) rather than "[Us er]"
     
Thread Status:
Not open for further replies.

Share This Page