Inactive [ADMN/DEV] Permissions v2.7.4 (Phoenix) - DISCONTINUED! 3.0 has a new home!

Discussion in 'Inactive/Unsupported Plugins' started by TheYeti, Feb 25, 2011.

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

    TheYeti

    Permissions 2.7.4 (Phoenix) - Now with AntiBuild built in!
    Download:
    Latest Stable: Full Zip | Jar Only
    Latest Dev Build: Full Zip | Jar Only
    Previous Versions: 2.7.3 (JAR) | 2.7.2 (JAR) | 2.7.1 (JAR) | 2.7 (JAR) | 2.6 (JAR) | 2.5.5 (JAR) | 2.5.4 (JAR) | 2.5.3 (JAR) | 2.5.2 (JAR) | 2.5.1 (JAR) | 2.5 (JAR) | 2.4 (JAR) | 2.3 (JAR) | 2.2 (JAR)

    Plugin Authors: How to hook into Permissions

    Permissions 2.x is being discontinued! 3.0 can be found HERE!!!


    I am discontinuing Permissions 2.x and leaving the project. Permissions is not going away though! Since 2.6 I have been working closely with another developer and added them to the team. For the past several version they have not only been assisting with 2.x but also doing a lot of the development of much anticipated 3.x. rcjrrjcr will be taking over as lead developer of Permissions from 3.x forward. I have full faith in them and after working closely with them on the development on the last few version and the next major version I feel that I am leaving this project in more than capable hands. I put way to much work into this project to just leave it with anyone, and this is one of the few programs that I am incredibly proud of.

    Many people will probably wonder why I am leaving again after taking over the project just a few months ago. I could quote drama and headaches, of which there were quite a few with this project. Unfortunately real life happens. Many people already know that I have been having medical issues here lately. Unfortunately while they have gotten better, they have not gone away. This coupled with other real life commitments, going to school full time, and starting up my own company, I am currently in the process of being laid off from work. At this point I have so much stuff going on in my life and am being pulled in so many directions that I am not able to get any work done on anything. This has lead to me missing commitments and letting people down on multiple things.

    Permissions is also a very high maintenance plugin that requires a lot of attention and time. Right now I am not able to devote that time and do not feel it is fair for me to try to continue to be the lead developer on it. I had originally thought that adding other members to the team would be helpful, but unfortunately this just lead to frustration for them and myself as I just was not able to commit to the project enough. Hence, 3.0 has been rewritten almost exclusively by rcjrrjcr with minimal contributions by myself.

    At this point I will be stepping away from the project to focus more on real life and to try to free up some time for other projects and to work with more individual like the wonderful HeroCraft Coding team to fulfill some commitments that I made to them a long time ago and sadly did not come through on. I feel that this is the best for all involved, both myself and the other Permissions developers, as well as the community who deserve someone who can contribute more time and attention to them and supporting them. I do not want to see Permissions end up like many other plugins with an absentee programmer and just slowly wasting away from a great plugin with a lot of potential to a headache with no support.

    I will still be active in the community, just not as much as not in the same way. I'm sure my server will be more than happy to have their head admin back and active again as well.

    Thank you and happy gaming.




    Changelog
    • 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
    • 2.6
      • Pulled in commits by rcjrrjcr
      • Fixed versioning. Last version should have technically been 2.6
      • Fixed invalid config file being written
      • Fixed erroneous conversion message.
    • 2.5.5
      • Updated to be compliant with CB600+
      • Further Maven Integration and Autobuilding
      • Better handling of configuration file errors.
        • If you do not have a world config file for the default world at startup it will now look for config.yml
        • If it cannot find that it will look for world.yml instead in case you named it that when that is not what is in level-name:
        • It will rewrite the config file to be the proper name. At this time it does not delete the old one though.
      • Removed defunct public abstract calls. If your not using the right one by now you should be shot anyway.
    • 2.5.4
        • Added Command aliases for perms and pr
        • Changed the way directories are handled.
        • Stopped it from creating an empty <world>.yml file in base directory
        • Moved project to using Maven.
    • 2.5.3
      • Change from File.pathSeparator to File.separator to fix multiworld perms
    • 2.5.2
      • Added more instructions to the included config file within the plugin
      • Added a check that will use the default world permissions if a world specific config file cannot be found.
      • Added a function to get only the group that a player is assigned to without checking for group inheritance.
      • Added a change to colorize() to fix it hopefully not adding an extra unneeded ascii character and thus creating a linebreak/color switch issue
      • Removed permissions.info as it was not needed and was a artifact of testing I was doing.
    • 2.5.1
      • Fixed a bug that could cause a group to be returned as null for getGroups()
    • 2.5
      • Added in AntiBuild functionality to Permissions
      • Minor code tweaks
      • Added getGroups(world, player) to PermissionHandler so that plugins can call it to get all of a users groups
      • Fixed the inability to use the permissions -reload all command from within the console. I still need to do some more work on this as it doesn't seem to like to accept anything other than all from console.
    • 2.4
      • Refactored namespaces to keep in line with Java & Bukkit policy
        • This was cancelled as it ended up being not needed
      • Fixed setupPermissions()
    • 2.3
      • Undid removal of some code that I had overzealously purged during cleanup
      • Merged in last of Nijikokun's changes
      • Re-ordered the main class to attempt to fix the problems with Plugin API
    • 2.2
      • Developer change
      • Fixed reloading of configuration files
      • Moved commands to registering with plugin.yml
      • Commands now use onCommand instead of onPlayerCommand
      • Command is now /permissions instead of /pr
    [/SPOILER]
     
    mruczek, kahlilnc, Pii and 58 others like this.
  2. Offline

    Tekhawk

    Code:
    13:13:40 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:625)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
        at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.java:344)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
        at net.minecraft.server.ItemStack.a(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    The above error message can be avoided my renaming the default group to pretty much anything but default till it is fixed.
     
  3. Offline

    thatguy25

    I have an error and I have no idea what it is telling me to fix:
    (see attached photo)
     

    Attached Files:

  4. Offline

    Rhuen

    New Version but i have problems.
    When a "member" destroy signs it comes
    [SHOP]oi, you dont have the permission, after 1or 2 seconds die sign come back.
    Only admins can destroy signs.
    My shopsystem are Bettershop, ther is no shopsign system :/.
    Idea?
     
  5. Offline

    rcjrrjcr

    "\t" indicates that you used a tab on that line. Replace all tabs with 4 spaces.
     
  6. Offline

    Tekhawk

    /t is the character for a TAB if you look at the ^ it is not pointing at the place you circled it is pointing the the invalid tabs before it use spaces in yml files not tabs
     
  7. Offline

    JackTDawson

    if your using windows, do what I do when i see this type of error. Copy the whole file into wordpad. NOT notepad. Then, copy and paste EVERYTHING inside of wordpad back out to notepad and save the file. Then run it through YML parser. What happens that I have ran into is hidden glitches or ( Non Windows Type Sets ) that windows doesn't show you even inside of Notepad ++. Microsoft Wordpad however, strips it clean. Remember, i'm talking copy and pasting. Not saving until its finally been cleaned up by wordpad first.

    EDIT : Yes tabs sometimes get caught into those "Hidden" characters as well. In this case, do as they suggest and run it through Notepad ++ to get rid of tabs. I get all kinds of these errors when I am transferring the file through the net / FTP. Wordpad cleans it up.
     
  8. Offline

    thatguy25

  9. Offline

    Trillily

    Can I add a new Group like Owners, Co-Owners and Donator. And how could I add a prefix like "[Admin]" Behind the name of every Administrator.
     
  10. Offline

    imoro

    Hi, Groups like "Ritter" get an error when rightclicking on anything, here my config: http://pastebin.com/wEvka6Xy

    Could you please help me?
     
  11. Offline

    Tekhawk

    What is the error they get when they click on stuff? And can you provide a list of other plugins you have installed.

    Yes you can and if it is behind you want to put it in the Suffix field like this

    Code:
    groups:
        New:
            default: true
            info:
                prefix: ''
                suffix: ' the Noob'
                build: true
            inheritance: null
            permissions:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  12. Offline

    JackTDawson


    Looks to me like it's the NULL problem again. Read up above your message and scroll through about 2 pages. Your config looks fine. The coders are working on the problem and working with the Bukkit Team to get it resolved.

    Once they come out with new version, hopefully NULL wont be rewritten all over the config files that all plugin creators are having to deal with.
     
  13. Offline

    Rhuen

    No one an idea?
    Messages ingame when member destroy a sign:
    Oi, you dont have the permission.
    Before this new updates, it was working, only admins can destroy signs.
     
  14. Offline

    JackTDawson

    Are you using Essentials.Protect ? If you are, remove it before adding a Shop Plugin. Protect has glitches with other Shop / Sign plugins.
     
  15. Offline

    Rhuen

    No iam using only this permissions, and i have no "shop sign plugin" i use only bettershop, but there dont use signs, its only chat commands.
     
  16. Offline

    JackTDawson

    Interesting.. Can you show us your Permissions config file ? And you are using 2.6 Permissions and the new 670 Bukkit right ? It could be what everyone else is waiting on.. The NULL problem to be taken care of.
     
  17. Offline

    Tekhawk

    Do you have craftbook installed by any chance Rhuen?
     
  18. Offline

    Rhuen

    Ok stop, i think i was "how ever" in the wrong thread :D i need "groupmanager" i post it there.

    But yes, i use craftbook, but the craftbook.* permission was given.
     
  19. Offline

    Tekhawk

    Hmm sounds like the problem a lot of people are having when placing blocks and such with Craftbook installed double check to make sure everyone has

    Code:
            - craftbook.mech.bridge
            - craftbook.mech.cauldron
            - craftbook.mech.elevator
            - craftbook.mech.gate
            - craftbook.mech.lift
     
  20. Offline

    JackTDawson

    you have a good point.. because I know Build #91 (Apr 10, 2011 12:56:25 PM) of Craftbook is not working at the moment. Not with CB670 at least. I tested it with ONLY craftbook and CB670 and no other plugins and it had a lot of errors in it.
     
  21. Offline

    Rhuen

    I was try...but nothing happents...comes the same permissions failed messages.
     
  22. Offline

    Tekhawk

    It is working here with no errors although not everything is working

    If you can pastebin your permission files be it groupmanager ones or this I can take a look and see if anything seems out of wack in them

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  23. Offline

    Rhuen

    Code:
    groups:
      member:
        default: false
        permissions:
        - /regionclaim
        - /regionmembership
        - BetterShop.user.*
        - citizens.color
        - citizens.create
        - citizens.help
        - citizens.move
        - citizens.remove.all
        - citizens.remove.singular
        - citizens.setitem
        - citizens.settext
        - commandbook.msg
        - commandbook.spawn
        - commandbook.who
        - craftbook.mech.bridge
        - craftbook.mech.cauldron
        - craftbook.mech.elevator
        - craftbook.mech.gate
        - craftbook.mech.lift
        - deathmessageplugin.getmessage
        - deathmessageplugin.sendmessage
        - elevators.advancebuilder
        - elevators.builder
        - elevators.operator
        - gokart.use
        - iConomy.access
        - iConomy.list
        - iConomy.payment
        - iConomy.rank
        - iConomyChestShop.shop.sell
        - iConomyChestShop.shop.use
        - lwc.protect
        - mcbans.vote
        - mcbans.vote.msg
        - mcdocs./help
        - mcdocs./help2
        - mcdocs./help3
        - mcdocs./motd
        - mcdocs./news
        - mcdocs./rules
        - mcdocs./rules2
        - myhome.home.basic.*
        - wormhole.build
        - wormhole.config
        - wormhole.go
        - wormhole.list
        - wormhole.network.build.NETWORKNAME
        - wormhole.network.use.NETWORKNAME
        - wormhole.remove.all
        - wormhole.remove.own
        - wormhole.use.compass
        - wormhole.use.dialer
        - wormhole.use.sign
        inheritance: []
        info:
          prefix: +healthbar&e
          build: true
          suffix: '&f'
     
  24. Offline

    Tekhawk

    default: false

    ^ are you sure that the people getting the error are in that group since it is not your default group? Also you have a lot of "right click" plugins so any one of them could have the same permission issue that craftbook is going through at the moment.. sadly that one could take a bit to track down you might want to remove some of the jars to see which one is the one causing it.


    @Jack stand corrected it does not work for me either at the moment but no errors just nothing happens :/
     
  25. Offline

    RoundEye

    Yes, that is what I mean. permissions.jar is within the plugins folder and so on. Here is my config file...

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Noobs:
            default: true
            info:
                prefix: '&8REGISTER TO BUILD'
                suffix: ''
                build: false
            inheritance:
            permissions:
        Members:
            default: false
            info:
                prefix: '&bBUILDER'
                suffix: ''
                build: 'true'
            inheritance:
            permissions:
                - 'lwc.protect'
                - 'essentials.help'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.use'
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'.
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.kit'
                - 'essentials.suicide'
                - 'essentials.spawn'
    
        Trusted:
            default: false
            info:
                prefix: '&2TRUSTED'
                suffix: ''
                build: 'true'
            inheritance:
                - Members
            permissions:
                - 'essentials.tptoggle'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.kit.irontools'
        VIP:
            default: false
            info:
                prefix: '&dVIP'
                suffix: ''
                build: 'true'
            inheritance:
                - Trusted
            permissions:
                - 'essentials.kit.diamondtools'
                - 'magiccarpet.mc'
        Moderators:
            default: false
            info:
                prefix: '&6MOD'
                suffix: ''
                build: true
            inheritance:
                - VIP
            permissions:
                - 'lwc.mod'
                - 'worldedit.navigation.jumpto'
                - 'worldedit.navigation.up'
                - 'worldedit.navigation.thru'
                - 'worldedit.fixwater'
                - 'worldedit.fixlava'
                - 'worldedit.butcher'
                - 'worldedit.extinguish'
                - 'worldedit.drain'
                - 'essentials.signs.disposal.create'
                - 'essentials.signs.disposal.use'
                - 'essentials.jump'
                - 'essentials.tptoggle'
                - 'essentials.tp'
                - 'essentials.tpo'
                - 'essentials.tphere'
                - 'essentials.tpohere'
                - 'essentials.tppos'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.broadcast'
                - 'essentials.burn'
                - 'essentials.ban'
                - 'essentials.ban'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.kickall'
                - 'essentials.unban'
                - 'essentials.unbanip'
                - 'essentials.invsee'
                - 'essentials.item'
                - 'essentials.time'
                - 'groupmanager.manuadd'
                - 'groupmanager.manudel'
                - 'vanish.vanish'
                - 'vanish.vanish.list'
                - 'vanish.dont.hide'
                - 'worldgaurd.stopfire'
                - 'worldgaurd.allowfire'
                - 'worldgaurd.slay'
                - 'worldgaurd.locate'
                - 'essentials.kit.diamond'
        Admins:
            default: false
            info:
                prefix: '&cADMIN'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
     
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        xRoundEyex:
            group: Admins
            info:
            permissions:
                - '*'
        Sfixler:
            group: Admins
            info:
            permissions:
                - '*'
        geo36089:
            group: Moderators
            permissions:
                 
     
  26. Offline

    imoro

    They only get "You don't have the permissions to do this".
    Plugins:
    • Worldguard
    • WorldEdit
    • WolfNames
    • Vanish
    • Permissions
    • MagicCarpet
    • LWC
    • LogBlock
    • iConomy
    • iConomy ChestShop
    • HeroChat
    • Essentials
    • ecoCreature
    • CraftBook
    • BlastControl
    • Backupplugin
     
  27. Offline

    mcanusrules

    Not sure why, but if I edit the yml for my world and stop the server, the changes I made are reverted. This has only started in the latest build. This happens with reload commands also.

    EDIT: I can edit the file when the server is stopped. When it starts again it doesn't change the file.
     
  28. Offline

    Rhuen

    I was for testing in this "member" group and yes, it comes in this group.

    This sign messages is no plugin, i dont know why it comes...i will only destroy signs...there have no functions.

    I can't destroy normal since not since with a plugin function.
    It was running all days correct but know with the new craftbook version this message comes...but no one knows why.
     
  29. Offline

    JackTDawson

    Here is your problem.. You do not have a Default Group...

    permissions:
    system: default


    This is what you have instead....

    Noobs:
    default: true

    Change it to :

    permissions:
    system: Noobs

    As was previously already discussed, the coders are waiting on Bukkit to update again. The permissions coders fixed it on their end.. but they are waiting on Bukkit to work with their fix. I also mentioned this glitch earlier in the thread.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  30. Offline

    Rhuen

    Ok the problem ware bettershop himself...the programer must it check, when i delete bettershop this message is not comming. so thanks for ideas ;).
     
  31. Offline

    Tekhawk

    You most likely need to add the permissions for craftbook to your default group craftbook.mech.gate ect ect

    http://forums.bukkit.org/threads/6250
     
Thread Status:
Not open for further replies.

Share This Page