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

    coopf

    When ever I place a block I get "[SEVERE] Could not pass event BLOCK_PLACE to Permissions" and when I destroy one I get "[SEVERE] Could not pass event BLOCK_BREAK to Permissions", what is wrong? I'm on build 733.
     
  3. Offline

    _LB

    Does anyone else find it funny that the typo guide has so many typos?
     
  4. Offline

    Clank331

    Hey, i have a problem.
    The Permission.jar don't load! Why?

    "01:30:03 [SCHWERWIEGEND] Could not load 'plugins\Permissions.jar' in folder 'plu
    gins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:138)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 72, column 32:
    - 'commandbook.msg'
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(
    ParserImpl.java:510)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfigurati
    on.java:58)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    132)
    ... 13 more"
     
  5. Offline

    Jeyge

    You have a tab in your .yml file at or around line 72. You need to replace it with spaces.
     
    Clank331 likes this.
  6. Offline

    Clank331

    Ohh :D
    I have lots of tab in my .yml :p
    but no all fix and it works perfect !!
    Thank you
    Jeyge
     
  7. Offline

    alexhoodg

    when i put on 677 and try to log onto my server it just says end of stream 709 works for me
     
  8. Offline

    Jeyge

    You can't run the 1.5 client on a 1.4 server or a 1.4 client on a 1.5 server. If you want to run 677, you will need to downgrade your client to 1.4.
     
  9. Offline

    PancakeTime73

  10. Offline

    alexhoodg

    i dont want to do that all i want is my permissions to work on 1.5 and its not
     
  11. Offline

    fartman

    I have been at this for an hour and Im getting really pissed.

    How do i fix the damn Block_Breake null pointer error thing??????

    Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroups(Control.java:620)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:61)
    at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:398)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
    at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:419)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  12. Offline

    Jeyge

    Understandable, but at some point you are going to have to tell us what is broken before anyone can help you fix it.
     
  13. Offline

    alexhoodg

    thats the problem i dont know whats broken i have yetis 2.7 it loads in the cmd, checked the ymal on the parsar everything checks out o and yeah 709 build
     
  14. Offline

    Jeyge

    Something must be happening for you to be here though. What is it that leads you here?

    The other posts with the same error claim that they were able to fix the problem by granting permissions to Craftbook. Are you perhaps running Craftbook?

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

    fartman

    Nope, no craftbook, just Worldedit, PureHomes and Essentials.
     
  16. Offline

    alexhoodg

    the users part is broken it always says that i dont have permissions here is the yml

    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:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'essentials.help'
                - 'essentials.back'
                - 'essentials.back.ondeath'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.warp.[warpname]'
                - 'essentials.spawn'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.clearinventory'
                - 'essentials.kit'
                - 'essentials.kit.<kitname>'
                - 'essentials.tpahere'
        Builder:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.help'
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'essentials.back'
                - 'essentials.back.ondeath'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.warp.[warpname]'
                - 'essentials.spawn'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.clearinventory'
                - 'essentials.kit'
                - 'essentials.kit.<kitname>'
                - 'worldedit.clipboard.clear'
                - 'worldedit.clipboard.load'
                - 'worldedit.clipboard.save'
                - 'worldedit.clipboard.copy'
                - 'worldedit.clipboard.flip'
                - 'worldedit.clipboard.rotate'
                - 'worldedit.clipboard.cut'
                - 'worldedit.clipboard.paste'
                - 'worldedit.generation.cylinder'
                - 'worldedit.generation.cylinder'
                - 'worldedit.generation.sphere'
                - 'worldedit.generation.sphere'
                - 'worldedit.generation.forest'
                - 'worldedit.generation.pumpkins'
                - 'worldedit.region.walls'
                - 'worldedit.region.faces'
                - 'worldedit.region.smooth'
                - 'worldedit.region.replace'
                - 'worldedit.region.stack'
                - 'worldedit.region.set'
                - 'worldedit.region.move'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.hpos'
                - 'worldedit.selection.hpos'
                - 'worldedit.wand'
                - 'worldedit.selection.expand'
                - 'worldedit.tool.tree'
                - 'worldedit.snow'
                - 'worldedit.thaw'
                - 'worldedit.extinguish'
                - 'worldedit.butcher'
                - 'worldedit.remove'
                - 'worldedit.fill'
                - 'worldedit.drain'
                - 'essentials.tp'
                - 'essentials.tpahere'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.spawnmob'
                - 'essentials.clearinventory.others'
                - 'essentials.broadcast'
                - 'essentials.kill'
                - 'essentials.ban'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.unban'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.time'
                - 'essentials.god'
                - 'essentials.heal'
    
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - essentials.help'
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'essentials.back'
                - 'essentials.back.ondeath'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.warp.[warpname]'
                - 'essentials.spawn'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.clearinventory'
                - 'essentials.kit'
                - 'essentials.kit.<kitname>'
                - 'worldedit.clipboard.clear'
                - 'worldedit.clipboard.load'
                - 'worldedit.clipboard.save'
                - 'worldedit.clipboard.copy'
                - 'worldedit.clipboard.flip'
                - 'worldedit.clipboard.rotate'
                - 'worldedit.clipboard.cut'
                - 'worldedit.clipboard.paste'
                - 'worldedit.generation.cylinder'
                - 'worldedit.generation.cylinder'
                - 'worldedit.generation.sphere'
                - 'worldedit.generation.sphere'
                - 'worldedit.generation.forest'
                - 'worldedit.generation.pumpkins'
                - 'worldedit.region.walls'
                - 'worldedit.region.faces'
                - 'worldedit.region.smooth'
                - 'worldedit.region.replace'
                - 'worldedit.region.stack'
                - 'worldedit.region.set'
                - 'worldedit.region.move'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.hpos'
                - 'worldedit.selection.hpos'
                - 'worldedit.wand'
                - 'worldedit.selection.expand'
                - 'worldedit.tool.tree'
                - 'worldedit.snow'
                - 'worldedit.thaw'
                - 'worldedit.extinguish'
                - 'worldedit.butcher'
                - 'worldedit.remove'
                - 'worldedit.fill'
                - 'worldedit.drain'
                - 'essentials.tp'
                - 'essentials.tpahere'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.spawnmob'
                - 'essentials.clearinventory.others'
                - 'essentials.broadcast'
                - 'essentials.kill'
                - 'essentials.ban'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.unban'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.time'
                - 'essentials.god'
                - 'essentials.heal'
        Admins:
            default: false
            info:
                prefix: 'heres'
                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:
        alexhoodg:
            group: Admins
            permissions:
        bchamp:
            group: Default
            info:
                prefix: ''
                suffix: ''
            permissions:
        chris98k:
            group: Default
            permissions:
     
  17. Offline

    fitofinsanity

    Looks like an encoding error. You might have a special character like an é, missing a - or something like that. Post your yml file.

    You have to replace the <kitname> and [warpname] in 'essentials.kit.<kitname>' and 'essentials.warp.[warpname]' with actual kit name and warp name that you've made.

    You forgot a ' under Moderator for essentials.help

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

    PancakeTime73

    here it is http://pastebin.com/uaNFHSrX
     
  19. Offline

    alexhoodg

    well that doesnt matter until it actually works
     
  20. Offline

    fitofinsanity

    Sorry read again I edited it.
     
  21. Offline

    alexhoodg

    i just fixed it and it still says when i enter and try a command like /manuadd it says your not allowed to use this command
     
  22. Offline

    Jeyge

    manuadd is part of GroupManager which you didn't give yourself access too.
     
  23. Offline

    _infina_

    I can't get permissions to load up on my server. I have build 733. The server doesn't think that it is there. the commands for permissions don't work. There is another server on the same machine that is having the same problem.
     
  24. Offline

    fartman

    I still need help. Help please?
     
  25. Offline

    Jeyge

    The only special character I see in there is "suffix: '§multiplay'". Perhaps try to change that and see if it works.
     
  26. Offline

    alexhoodg

    but i have the - '*' which means i do right?
     
  27. Offline

    Jeyge

    I would remove all plugins and start adding them back until the error comes back. Load WorldEdit last. From searching for the BLOCK_BREAK error, it seems like each error has a different resolution.
     
  28. Offline

    fartman

    Ok thank you very much.
     
  29. Offline

    Jeyge

    Well, if you actually have GroupManager loaded, then you have conflicting permission plugins and we won't actually know which one is giving you your permissions. I would suggest either going with Permissions or GroupManager.
     
  30. Offline

    unenergizer

    I am getting the same error. I removed all plugins from the Plugins folder, except for "Permissions" I then logged back in and the error was still being returned (still happening).
     
  31. Offline

    fartman

    Which one is better? And the deleting every plugin didnt work
    still get the error
     
Thread Status:
Not open for further replies.

Share This Page