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

    MacG32

    Confirmed working with build #556. [​IMG]
     
  3. Offline

    TheYeti

    From the OP:

     
    Peacemaker957 and saturnine_nl like this.
  4. Offline

    Triggjo2


    Try making all of the things that look like this prefix: '&c[Admin] '
    look like prefix: '&c ' it puts your rank in automaticly if you use iChat
     
  5. Offline

    Laichonious

    Ok so I've been scouring the forum for some kind of list of permissions I can use for bukkit with this plugin. I want to create a 'visitor' or 'n00b' group that my nephew (who is 4) can use to just run around the serve and not destroy anything. He doesn't have a clue what he's doing and granted he can't do too much damage still it's hard to find all of the places he got to to fix stuff. so I want to disable all world affecting permissions for him. but I don't know what those permissions would be. Can anyone point me in the right direction?
     
  6. Offline

    solentice

    Laichonious, I think you would need another plugin with actual commands first for Permissions to do something for you, such as the Essentials plugin. Then in Permissions, you can use the already created Default group which should have no permissions, and cannot build, and add your nephew's name to the users list at the bottom of that file, and put him in the Default group. Then also add your name to that users list and put yourself in the Admins group, who has all plugin commands and build permission, or add your name in lowercase to the ops.txt file(this file is created by the server, located in your main server folder) which also gives you all the commands.
     
  7. Offline

    Daan

    I'm having a problem.
    I get this error
    Caused by: while scanning an alias
    in "<reader>", line 119, column 16:
    - '*'
    ^
    expected alphabetic or numeric character, but found but found '
    in "<reader>", line 119, column 17:
    - '*'

    I've just permissions for 3 weeks now, and it happens now.
     
  8. Offline

    emoknight

    Code:
    2011-03-16 20:53:02 [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:625)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:24)
        at org.bukkit.plugin.java.JavaPluginLoader$22.execute(JavaPluginLoader.java:237)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
        at net.minecraft.server.ItemStack.a(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    can some1 help me with this plz?
    im using 2.5
     
  9. Offline

    SavageCore

    Same, 2.5.4 and CB 531
     
  10. Offline

    aminecraftuser

    could some one give me a copy of a work permissions file so i can look over it to see how it needs to be set up because i cannot do it for the life of me? and i do not understand the sample.
     
  11. Offline

    Hovertac

    What do I have to add for a different group to have permission to use /give?
     
  12. Offline

    emoknight

    yes i just update it to 2.5.4 now it fix but im also still using CB432 :)
     
  13. Offline

    Seven50six6

    How do I make another group like a moderator then distribute it on my server? I want it to be able to just use kick and how do I put restrictions on spawning some items like tnt?
     
  14. Offline

    Narodigg

    I must be missing the obvious here, but I have even looked on the wiki.
    How am I to go about promoting Guest (default) users with build=false to a Member once they meet my requirements. Sure I can edit the file manually, but my Mods don't have access to the physical files.
     
  15. Offline

    woodzy

    use a plugin called yedit for ingame permisson editing
    and for all outhers hers my WORKING100% permissions file to give u an idea
    http://pastebin.com/Hu5fFPAQ
    pluginmaker please dont give me shit about the format thanks =)
     
  16. Offline

    Chipmunk9998

    I seem to have fixed the error by going back to 2.5.3, but now I get and error whenever someone tries to break or place a block. This is what it says.


    Code:
    17:21:43 [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:656)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:264)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:495)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    17:21:44 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:656)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:
    64)
            at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.j
    ava:309)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112
    )
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:59)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:360)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
     
  17. Offline

    Laichonious

    Well, i guess no plugin would have this, I was able to use Permission's built in build like you said for him. but now he's mad cuz he can't put torches down which is his favorite thing in the world. as far as I can tell it's either all or nothing. either you can build or you can't, there seems to be no way to just say that soandso can use only dirt and stone and dootiebob can use only gold and wood etc. so unless essentials has such things, i guess this is the way it is.
     
  18. Offline

    woodzy

    make shure there are NO spaces between lines and all ines have spaces NOT tabs
     
  19. Offline

    SavageCore

    Ah perhaps I made a mistake! Will re test...

    Edit: Yeah I seemed to have FakePermissions from somewhere. Haven't used groupmanager in a while and no issues until today but anyway removed that and working fine on 531 and 541
     
  20. Offline

    Aaron Flynn

    NEVERMIND!

    THANKS TO THE TYPO GUIDE, I SOLVED MY OWN PROBLEMS..


    THANKS FOR THE GREAT PLUGIN!
     
  21. Offline

    Aaron Warshaw

    This is extremely confusing for me and I would greatly appreciate if someone could message me on how to implement this into my server with other plugins. I have mumble/vent/skype/teamspeak and really just need some help with the features so I can create groups to have access to some of the other plugins. Thank you!
     
  22. Offline

    imaxorz

    Can someone tell me what I did wrong?

    WFVIP:
    default: false
    info: {prefix: '&6[VIP]&9', suffix: '&f', build: true}
    inheritance: [Citizen]
    permissions: [essentials.warp]

    [​IMG]

    The [VIP] badge should only appear once, or at least I want it to.
     
  23. Offline

    rcjrrjcr

    Is there any way to add permission nodes from my own plugin? From what I see, Control.class' addUserPermission()/removeUserPermission() method modifies the world's YAML file but doesn't save it. The has() and the permission() methods doesn't check for modifications in the WorldConfiguration HashMap. Reloading via the forceLoadWorld() method doesn't read the changes made by addUserPermission() and other permission-modifying methods either but reads the YAML file from disk instead.
     
  24. Offline

    DanJK

    How do i give a group permission to a whole plugin. I want my mods to be able to use world edit but Theres so many commands, cant I just give them access to the whole plugin with 1 line?
     
  25. Offline

    Willo

    hi can someone help me out im not sure what to rename the permission as im new to this stuff and can someone help me out with all the text tell me how it all goes and how to set a suffix.there are so many lines of text please could someone tell me how it all goes? THX :)
     
  26. Offline

    Walnoot

    Could you make pvp on/off a toggle? This would be very usefull for making one world have pvp, and another world not.
     
  27. Offline

    breaklight

    it doesn't work on the new version of bukkit.when the plugin will be updated?
     
  28. Offline

    Tobbi

    HELP! when i start my server it says that permissions is initialazed. but then there is an error and it disable it self....it says something with "Version Missmatch"
    and yes i have permissions 2.5.4
     
  29. Offline

    Daan

  30. Offline

    kdpslider

    my world.yml file....problem seems to be that groups are being touched. I have users listed in groups, and default does not have build rights, however all users cannot build then. Also multiverse is not accessing the other world.yml files i've set up for them.

    # 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.
    # Does not work for the default world.
    # 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:
    #
    # - 'general.spawn'
    #
    # Otherwise errors will happen!
    ##
    # Globalized Permission settings:
    #
    # If a permission contains periods (.) you can denote a globalized parameter:
    #
    # - 'general.*'
    #
    # 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:
    # - '-general.time'
    ##
    # 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.warp'
    - 'essentials.warp.[warpname]'
    - 'essentials.getpos'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.msg'
    - 'essentials.list'
    - 'essentials.rules'
    - 'essentials.motd'
    - 'essentials.helpop'
    - 'multiverse.world.spawn'
    General:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'essentials.help'
    - 'essentials.setwarp'
    - 'essentials.warp'
    - 'essentials.warp.[warpname]'
    - 'essentials.warp.list'
    - 'essentials.delwarp'
    - 'essentials.compass'
    - 'essentials.getpos'
    - 'essentials.home'
    - 'essentials.sethome'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.msg'
    - 'essentials.list'
    - 'essentials.me'
    - 'essentials.afk'
    - 'essentials.rules'
    - 'essentials.motd'
    - 'essentials.helpop'
    - 'essentials.back'
    - 'essentials.back.ondeath'
    - 'multiverse.world.spawn'
    - 'general.*'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - General
    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:
    xxxxx:
    permissions:
    - '*'
    xxxxx:
    permissions:
    - '*'
    xxxxx:
    permissions:
    - '*'
    xxxxx:
    groups: General
    xxxxx:
    groups: General
    xxxxx:
    groups: General
    xxxxx:
    groups: General
    xxxxx:
    groups: General
     
  31. Offline

    sheepyowl

    i have a little question. do people who use permissions go inside the files and write 'whateverplugin.whatevercommand*', or do they use something to do it for them?

    cuz i might be doin it wrong.

    edit: also, if something is supporting permissions but not listed in the permissions, does that mean nobody can use it but people with the '*'?

    edit2: @Daan at line 110 you forgot a ' at the end. its [- 'simpleban.sunban] and should be [- 'simpleban.sunban']
     
Thread Status:
Not open for further replies.

Share This Page