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

    Tealk

    Sorry but with what ingame command i add player to a group
     
  3. Offline

    Jandalf

    please post the section with the Erik here... there is a mistake.
     
  4. Offline

    Rocky

    Thank you SO much for clarifying that. I really wish the Developer was a bit more clear at showing us examples, but i mean he DID write the plugin, so i cut him lots of slack.

    This has nothing to do with 1.6.5, its your yml format, you have an error.
    Go to - http://yaml-online-parser.appspot.com/

    and paste your yml there and see the problem, then fix it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  5. Offline

    unwritten

    So I have paste the Code:

    Code:
    users:
    
        Erik:
    
            groups: Admins
    
            permissions:
     
    Mose:
    
            groups:
     Moderator
    
            permissions:
    
        Tobi:
    
            groups: Moderator
    
            permissions:
    
        Robert:
    
            groups:
     Moderator
            permissions:
    
        Marc:
    
            groups: Moderator
    
            permissions:
    
        Hunterchen:
    
            groups: Moderator
    
            permissions:
    and the output is:

    Code:
    ERROR:
    
    while parsing a block mapping
      in "<unicode string>", line 2, column 1:
        users:
        ^
    expected <block end>, but found '<scalar>'
      in "<unicode string>", line 14, column 2:
         Moderator
         ^
    What is the problem?
    And what should i do now?

    ..sorry I'm german and don't understand everything
     
  6. Offline

    dragos240

    Not sure if this has been asked. But what about compatibility with plugins that use older versions? Does v3 support old v2 features? What needs to be updated for older plugins using v2?

    Again, if this has been asked, link me to the post or posts.
     
  7. Offline

    Rocky

    There, i fixed it. If you read the documentation the developer posted in his wiki about converting 2.0 permissions to 3.0 permissions you would've seen that. ALWAYS read the documentation. Thoroughly.
     
  8. Offline

    Maxis010

    Plugin Devs will need to release an update that will move them from P2 to P3, not all of the P2 hooks were carried over so some P2 plugins will be broken if you use P3
     
  9. Offline

    Ian Yang

    For some reason, whenever I have Permissions in my plugin folder (running a bukkit server), a error shows up when a user types in a permissions command and items that were mined before reappear after 2, 3 seconds..

    First when I start the server it says..
    Code:
    09:50:27 [INFO] [Permissions] (Yeti) was initialized.
    09:50:27 [INFO] [Permissions] version [3.0.6] (Yeti)  loaded
    then when I say a permissions command (like /permissions for example) -- on the server cmd thing
    Code:
    09:52:27 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permissions' in plugin Permissions v3.0.6
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:127)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:699)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:666)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at com.nijiko.permissions.Entry.has(Entry.java:85)
            at com.nijiko.permissions.Entry.hasPermission(Entry.java:57)
            at com.nijiko.permissions.ModularControl.permission(ModularControl.java:288)
            at com.nijiko.permissions.ModularControl.has(ModularControl.java:265)
            at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:196)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    In the game, it says..
    Code:
    -------[Permissions]-------
    Currently running version: [3.0.6] (Yeti)
    An internal error occurred while attempting to perform this command
    I also tried it with version 2.7.4 and was the same. When I enter the other permission commands all it says is An internal error occurred, etc
     
  10. Offline

    unwritten

    Excuse me but can you send me a link?
    I don't know where I should read it?
     
  11. Offline

    Maxis010

    Check all your files are named correctly and are you restarting the server or /reloading the plugin?
     
  12. Offline

    macweirdo

    I still don't get it.
     
  13. Offline

    unwritten

    Thanks at the end the site helped me a lot
    no it works perfectly :)
     
  14. Offline

    Rocky

    Good, glad you got it working, and just read the first post. It shows the wiki.
     
  15. Offline

    Marc Friend

    My permissions is reading that each player assigned to a certain group is correct but the Admin is the only one being able to use permissions! Please Help!



    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '.'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'stargate.use'
                - 'essentials.setspawn'
                - 'essentials.help'
                - 'essentials.depth'
                - 'essentials.info'
                - 'essentials.suicide'
                - 'discosheep.party.one'
                - 'discosheep.help'
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'stargate.create'
                - 'stargate.option.free'
                - 'iSort.*'
                - 'MobBounty.mb'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.signs.protection.create'
                - 'essentials.signs.protection.use'
                - 'essentials.signs.free.use'
                - 'essentials.signs.buy.use'
                - 'essentials.signs.sell.use'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essemtials.tpdeny'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.worth'
                - 'essentials.balance'
                - 'essentials.pay'
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.realname'
        Moderator:
            default: false
            info:
                prefix: '*'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'essentials.signs.free.create'
                - 'essentials.tptoggle'
                - 'essentials.teleport.cooldown.bypass'
                - 'essentials.teleport.timer.bypass'
                - 'essentials.tpo'
                - 'essentials.nick'
                - 'essentials.nick.others'
                - 'essentials.seen'
                - 'essentials.ping'
                - 'essentials.ban'
                - 'essentials.tempban'
                - 'essentials.banip'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.kickall'
                - 'essentials.unban'
                - 'essentials.unbanip'
                - 'essentials.togglejail'
                - 'essentials.jail.exempt'
                - 'essentials.setjail'
                - 'essentials.deljail'
                - 'essentials.invsee'
                - 'essentials.weather'
        Admin:
            default: false
            info:
                prefix: '^'
                suffix: '^'
                build: true
            inheritance:
            permissions:
                - '*'
     

    Attached Files:

  16. Offline

    Jeyge

    I'll assume you aren't going to get the joke that you made so you are probably meaning that you don't get what to do to fix your problem. You just needed to change group to groups.
    Code:
    users:
        macweirdo:
            groups:
                - 'Admins'
            permissions:
                - '*'
    
    And because I feel as though I'm getting hammered for the little errors in the files that don't cause problems, you need to remove the info section because it no longer does anything in users.yml.
     
  17. Offline

    fugue2005

    and you think that it is proper that you, an end user, had to experiment in order to find out how to use tracks?
    this plugin is what most would term "mission critical"

    here is the wiki entry on the config instructions that this plugin won't properly function without.

    Code:
    Tracks are a new feature introduced in Permissions 3.0. They provide a mechanism to promote/demote your users easily.
    TODO: Write usage section
    
    Last edited by rcjrrjcr, May 12, 2011 
     
  18. Offline

    unwritten

    I've got the same problem?!
    No Error messages but the admin is the only one who can use permissions
     
  19. Offline

    Jeyge

    While the plugin is mission critical and I have tried to offer support for it ever since it was released, tracks aren't. All I tried to do was take some pressure off of the dev and answer a few questions being asked in this thread and I honestly wanted to know how it was implemented. Plus, my playing around with that section of the code uncovered 4 or 5 bugs.
     
  20. Offline

    fugue2005

    and that's awesome, but it also should not have been your responsibility to do so, your last post on tracks was over 100 messages back, there is a blank wiki entry that should be filled with instructions on how to use tracks.

    my moderators cannot edit the permissions files directly, the only way they have to promote someone above guest and give them build rights is by using promote commands, these commands absolutely will not function without tracks.
     
  21. Offline

    Jeyge

    Well then, I was quite happy to help get them the commands they need to do just that. I'm still hoping the demote fixes make it into the next build though. It would be a problem to grant someone access to a command they aren't ready for and they have no way to pull the player back down a rank. Although, this was just one way to promote/demote. There are still the other way to do it by adding/removing groups from the user.
     
  22. Offline

    unwritten

    If i start the server there are no errors but the admin is the only one who can use permissions

    and if I stop the server there is an error:

    Code:
    17:50:04 [SCHWERWIEGEND] Error occurred while disabling Permissions v2.7.2 (Is i
    t up to date?): null
    java.lang.NullPointerException
            at com.nijikokun.bukkit.Permissions.Permissions.onDisable(Permissions.ja
    va:126)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade
    r.java:771)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag
    er.java:269)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana
    ger.java:262)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManage
    r.java:290)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:311)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:247)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    73)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:423)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:408)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    PLEASE HELP
     
  23. Offline

    Jeyge

    Did you switch back to 2.7.2 or are you running GroupManager?
     
  24. Offline

    unwritten

    No I don't run GroupManager
    and I don't know why there is
    Error occurred while disabling Permissions v2.7.2 (Is i t up to date?): null

    I have delete and re-install it several times but nothing changes?!
     
  25. Offline

    Jeyge

    We'll need to see your permissions files. It looks like it is returning a null when it check to see if you even have permissions to use the /permissions command. A server.log couldn't hurt either.
    I don't see anything wrong with your groups.yml. Can you post the rest of your permissions files along with a server.log?

    Post your server.log along with your permissions files again and I'll take a look.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  26. Offline

    SyPi

    Worldguard / -edit seems not to work with Permission :-/

    If one them enabled:

    Code:
    18:18:19 [SCHWERWIEGEND] tried to access class com.nijiko.configuration.NotNullConfiguration$NotNullRepresenter from class com.nijiko.configuration.No
    tNullConfiguration initializing Permissions v3.0.6 (Is it up to date?)
    java.lang.IllegalAccessError: tried to access class com.nijiko.configuration.NotNullConfiguration$NotNullRepresenter from class com.nijiko.configurati
    on.NotNullConfiguration
            at com.nijiko.configuration.NotNullConfiguration.<init>(NotNullConfiguration.java:47)
            at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:112)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:106)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:229)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:216)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:282)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  27. Offline

    Jeyge

    You will want to use:

    Syntax: /permissions (g:)<target> (w:<world>) parents add <groupname> (w:<groupworld>)
    Permission node: permissions.parents.add
    Description: This commands adds the specified group as a parent of the target.
    Syntax: /permissions (g:)<target> (w:<world>) parents remove <groupname> (w:<groupworld>)
    Permission node: permissions.parents.remove
    Description: This commands removes the specified group from the target's parents.

    To add Joe to the Builders group in the world you are currently in, you would type "/pr Joe parents add Builders". If you were in another world or just want to fill out the rest of the information, you would use "/pr Joe w:World parents add Builders w:World".
    Post your permissions files along with your server.log.
    I'll take another crack at it if you want. Post all of your permissions files again and I'll see if I can find anything else. If you have empty files, just say file <blah> is empty.

    I think because users can now be assigned to multiple groups, setGroup() just didn't work as the name and was changed to addParent() and removeParent(). Give those a try and see if they do what you want.

    I know the dev is looking at how to fix this right now and has a bug on the GitHub about it. You can find the bug here and also a special version of Permissions that will be helpful to him in tracking down where the error is coming from. You might give that a try and see if it helps. Feel free to post any messages back here and someone will update the bug if you don't want to sign up for another website.

    If you want to avoid what is posted in that bug, some people have had success fixing this error by removing plugins until the error goes away. One that I can remember right now that has caused it is dynmap but there were a few others reported as well.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  28. Offline

    unwritten

    My server log if I start the server, if I reload the server withou any Plugins but permissions and if I reload the server with all my installed Plugins ..
    The error must be one of my plugins but wich one it could be???

    Code:
    148 recipes
    16 achievements
    18:32:36 [INFO] Starting minecraft server version Beta 1.6.3
    18:32:36 [INFO] Loading properties
    18:32:36 [INFO] Starting Minecraft server on 5.97.119.180:25565
    18:32:36 [WARNUNG] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    18:32:36 [WARNUNG] The server will make no attempt to authenticate usernames. Be
    ware.
    18:32:36 [WARNUNG] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    18:32:36 [WARNUNG] To change this, set "online-mode" to "true" in the server.set
    tings file.
    18:32:36 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-757-
    g9527def-b810jnks (MC: 1.6.3)
    18:32:36 [INFO] Preparing level "world"
    18:32:37 [INFO] Preparing start region for level 0
    18:32:37 [INFO] Preparing start region for level 1
    18:32:38 [INFO] Preparing spawn area: 52%
    18:32:38 [INFO] [Permissions] (Yeti) was initialized.
    18:32:38 [INFO] [Permissions] version [3.0.6] (Yeti)  loaded
    18:32:38 [INFO] Done (0,142s)! For help, type "help" or "?"
    >reload
    18:32:39 [INFO] [Permissions] (Yeti) saved all data.
    18:32:39 [INFO] [Permissions] (Yeti) disabled successfully.
    18:32:39 [INFO] [Permissions] (Yeti) was initialized.
    18:32:39 [INFO] [Permissions] version [3.0.6] (Yeti)  loaded
    18:32:39 [INFO] Reload complete.
    >reload
    18:33:05 [INFO] [Permissions] (Yeti) saved all data.
    18:33:05 [INFO] [Permissions] (Yeti) disabled successfully.
    18:33:05 [INFO] [Permissions] (Yeti) was initialized.
    18:33:05 [INFO] [Permissions] (Yeti) was initialized.
    18:33:05 [INFO] [AntiCreeper] version 1.0 is enabled.
    18:33:05 [INFO] [AutoPlant] version 1.6 is enabled!
    18:33:05 [INFO] Plugin Essentials Version 2.2.22 geladen, erstellt von Zenexer,
    ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³bersetzt
     von snowleo
    18:33:05 [INFO] Plugin EssentialsChat Version 2.2.22 geladen, erstellt von Zenex
    er, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³bers
    etzt von snowleo
    18:33:05 [INFO] Plugin EssentialsGeoIP Version 2.2.22 geladen, erstellt von Zene
    xer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³ber
    setzt von snowleo
    18:33:05 [INFO] This product includes GeoLite data created by MaxMind, available
     from http://www.maxmind.com/.
    18:33:05 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10
    minutes!
    18:33:05 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    18:33:05 [INFO] Plugin EssentialsProtect Version 2.2.22 geladen, erstellt von Ze
    nexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³b
    ersetzt von snowleo
    18:33:05 [INFO] Plugin EssentialsSpawn Version 2.2.22 geladen, erstellt von Zene
    xer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³ber
    setzt von snowleo
    18:33:05 [INFO] [Fight] Plugin Started. (version 1.1.4)
    18:33:05 [INFO] [Permissions] version [2.7.2] (Yeti)  loaded
    18:33:05 [INFO] [LockChest] Using Permissions!
    18:33:05 [INFO] [LockChest] Enabled
    18:33:05 [INFO] [Permissions] version [3.0.6] (Yeti)  loaded
    18:33:05 [INFO] SecretDoors v0.2 by MrChick enabled
    18:33:05 [INFO] SignLift - Copyright 2011 - Shannon Wynter (http://fremnet.net)
    18:33:05 [INFO] SignLift version 0.7 is enabled :)
    18:33:05 [INFO] WorldEdit 4.4 enabled.
    18:33:05 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    18:33:06 [INFO] Reload complete.
    >reload
    18:39:22 [INFO] [AntiCreeper] is DISABLED!
    18:39:22 [INFO] [AutoPlant] version 1.6 is disabled!
    18:39:22 [INFO] GroupManager - INFO - Scheduled Data Saving is disabled!
    18:39:22 [INFO] GroupManager version 1.0(alpha-5) is disabled!
    18:39:22 [INFO] [LockChest] Disabled
    18:39:22 [INFO] [Permissions] (Yeti) saved all data.
    18:39:22 [INFO] [Permissions] (Yeti) disabled successfully.
    18:39:22 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    18:39:22 [INFO] SecretDoors v0.2 by MrChick disabled
    18:39:22 [INFO] SignLift version 0.7 is disabled :(
    18:39:22 [SCHWERWIEGEND] Error occurred while disabling Permissions v2.7.2 (Is i
    t up to date?): null
    java.lang.NullPointerException
            at com.nijikokun.bukkit.Permissions.Permissions.onDisable(Permissions.ja
    va:126)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade
    r.java:771)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag
    er.java:269)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana
    ger.java:262)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManage
    r.java:290)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:311)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:247)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    73)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:423)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:408)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    18:39:22 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    18:39:22 [INFO] [Permissions] (Yeti) was initialized.
    18:39:22 [INFO] [Permissions] (Yeti) was initialized.
    18:39:22 [INFO] [AntiCreeper] version 1.0 is enabled.
    18:39:22 [INFO] [AutoPlant] version 1.6 is enabled!
    18:39:22 [INFO] Plugin Essentials Version 2.2.22 geladen, erstellt von Zenexer,
    ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³bersetzt
     von snowleo
    18:39:22 [INFO] Plugin EssentialsChat Version 2.2.22 geladen, erstellt von Zenex
    er, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³bers
    etzt von snowleo
    18:39:22 [INFO] Plugin EssentialsGeoIP Version 2.2.22 geladen, erstellt von Zene
    xer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³ber
    setzt von snowleo
    18:39:22 [INFO] This product includes GeoLite data created by MaxMind, available
     from http://www.maxmind.com/.
    18:39:22 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10
    minutes!
    18:39:22 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10
    minutes!
    18:39:22 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    18:39:22 [INFO] Plugin EssentialsProtect Version 2.2.22 geladen, erstellt von Ze
    nexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³b
    ersetzt von snowleo
    18:39:22 [INFO] Plugin EssentialsSpawn Version 2.2.22 geladen, erstellt von Zene
    xer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology, ³ber
    setzt von snowleo
    18:39:22 [INFO] [Fight] Plugin Started. (version 1.1.4)
    18:39:22 [INFO] [Permissions] version [2.7.2] (Yeti)  loaded
    18:39:22 [INFO] [LockChest] Using Permissions!
    18:39:22 [INFO] [LockChest] Enabled
    18:39:22 [INFO] [Permissions] version [3.0.6] (Yeti)  loaded
    18:39:22 [INFO] SecretDoors v0.2 by MrChick enabled
    18:39:22 [INFO] SignLift - Copyright 2011 - Shannon Wynter (http://fremnet.net)
    18:39:22 [INFO] SignLift version 0.7 is enabled :)
    18:39:22 [INFO] WorldEdit 4.4 enabled.
    18:39:22 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    18:39:22 [INFO] Reload complete.
    By the way my users file looks like that:

    Code:
     users:
    
        Erik:
    
            groups: Admins
    
            permissions:
    
        Mose:
    
            groups:
                - Moderator
    
            permissions:
    
        Tobi:
    
            groups:
                - Moderator
    
            permissions:
    
        Robert:
    
            groups:
                - Moderator
            permissions:
    
        Marc:
    
            groups:
                - Moderator
    
            permissions:
    
        Hunterchen:
    
            groups:
                - Moderator
    
            permissions:
    and my groups file:

    Code:
    groups:
    
        Default:
    
            default: true
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
            permissions:
    
        Moderator:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
                - Default
    
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.home.others'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.time'
                - 'commandbook.time'
                - 'essentials.back'
                - 'essentials.back.ondeath'
                - 'essentials.balance'
                - 'essentials.afk'
                - 'essentials.signs.free.use'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.use'
                - 'essentials.signs.warp.use'
                - 'fight.user'
                - 'essentials.worth'
                - 'essentials.pay'
                - 'essentials.signs.trade.create'
                - 'essentials.signs.trade.use'
                - 'essentials.signs.buy.use'
                - 'essentials.signs.sell.use'
                - 'essentials.signs.balance.use'
    
        Admins:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
            permissions:
    
                - '*'
    please help ..
     
  29. Offline

    Jeyge

    I don't see anything wrong with your groups and users but I was a little curious about your storageconfig.yml. You say you copied it from GitHub but you didn't say which part. You didn't perhaps set it up to run with MySQL did you? If not, could you post all of your permissions files with your server.log.
     
  30. Offline

    silthus

    Nope they don't exist. I only have some methods to check (boolean) Permissions and add Permissions to a player. I also can modify a group but not change the groups the player is in.

    Do I need to invoke a second class besides the PermissionsHandler?
     
  31. Offline

    Jeyge

    You just said you aren't running GroupManager but I see it in your log. :( Remove that and you will have better results. I fixed an error with your users.yml file too and cleaned up the spacing of your groups.yml

    users.yml
    Code:
    users:
    
        Erik:
            groups:
                - Admins
            permissions:
     
        Mose:
            groups:
                - Moderator
            permissions:
    
        Tobi:
            groups:
                - Moderator
            permissions:
    
        Robert:
            groups:
                - Moderator
            permissions:
    
        Marc:
            groups:
                - Moderator
            permissions:
    
        Hunterchen:
            groups:
                - Moderator
            permissions:
    groups.yml
    Code:
    groups:
    
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.home.others'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.time'
                - 'commandbook.time'
                - 'essentials.back'
                - 'essentials.back.ondeath'
                - 'essentials.balance'
                - 'essentials.afk'
                - 'essentials.signs.free.use'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.use'
                - 'essentials.signs.warp.use'
                - 'fight.user'
                - 'essentials.worth'
                - 'essentials.pay'
                - 'essentials.signs.trade.create'
                - 'essentials.signs.trade.use'
                - 'essentials.signs.buy.use'
                - 'essentials.signs.sell.use'
                - 'essentials.signs.balance.use'
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    Are you just trying ph.addParent? You'll need to do this at the User/Entry level. Try ph.safeGetUser. I would suggest not coding this way but you could as a test type ph.safeGetUser("world", "joe").addParent and see if it auto-completes.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    unwritten likes this.
Thread Status:
Not open for further replies.

Share This Page