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

    jimralphy

    I have done it like this, and it works.

    darth_vato:
    group: Vip25
    info:
    prefix:
    suffix:
    darth_vato:
    group: Moderator
    info:
    prefix:
    suffix:
     
  3. Offline

    BioRage

    Thanks, i just added it my way i think it's easier.

    Name
    group: x
    permissions:
    - x y z

    --- also this works with cb766.
     
  4. Offline

    Justappeard


    I have the Same problem here :( PLeas can some one help me?
    (im new to the forums)
    here is my config
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Newbie:
            default: true
            info:
                prefix: '&8'
                suffix: ''
                build: false
            permissions:
            - foo.bar
        gay:
            default: true
            info:
                prefix: '&d'
                suffix: ''
                build: true
            permissions:
            - foo.bar
        we_dont_like:
            default: true
            info:
                prefix: '&c'
                suffix: ''
                build: true
            permissions:
            - foo.bar
        thrusted:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - bar.foo
        builder:
            default: false
            info:
                prefix: '&a'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - bar.foo
        VIP:
            default: false
            info:
                prefix: '&e'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - weather.strike.item
        Admin:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        racoon:
            group: gay
        havik:
            group: builder
        mikeymanutd:
            group: thrusted
        Justappeard:
            group: Admin
        zwaluu:
            group: Admin
        gk50000:
            group: VIP
        gk40000:
            group: VIP
        hawkeye:
            group: Admin
        Frankwindlord:
            group: Admin
        mbdb:
            group: Admin
        les_bien:
            group: thrusted
        feemstar:
            group: VIP
        geemstar:
            group: Admin
        oksco:
            group: builder
        mrt:
            group: builder
        haunttwice:
            group: VIP
    
    Cliff I have an problem with building
    if some one is NOT op'd they can't build :S
    pleas help me out
    my config
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Newbie:
            default: true
            info:
                prefix: '&8'
                suffix: ''
                build: false
            permissions:
            - foo.bar
        gay:
            default: true
            info:
                prefix: '&d'
                suffix: ''
                build: true
            permissions:
            - foo.bar
        we_dont_like:
            default: true
            info:
                prefix: '&c'
                suffix: ''
                build: true
            permissions:
            - foo.bar
        thrusted:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - bar.foo
        builder:
            default: false
            info:
                prefix: '&a'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - bar.foo
        VIP:
            default: false
            info:
                prefix: '&e'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - weather.strike.item
        Admin:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        racoon:
            group: gay
        havik:
            group: builder
        mikeymanutd:
            group: thrusted
        Justappeard:
            group: Admin
        zwaluu:
            group: Admin
        gk50000:
            group: VIP
        gk40000:
            group: VIP
        hawkeye:
            group: Admin
        Frankwindlord:
            group: Admin
        mbdb:
            group: Admin
        les_bien:
            group: thrusted
        feemstar:
            group: VIP
        geemstar:
            group: Admin
        oksco:
            group: builder
        mrt:
            group: builder
        haunttwice:
            group: VIP
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  5. Offline

    halvors

    My console is spamming errors:

    Code:
    2011-05-10 19:15:28 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.Acrobot.iConomyChestShop.PermissionManager.hasPermissions(PermissionManager.java:16)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-10 19:15:28 [SEVERE] Could not pass event PLAYER_INTERACT to WeatherControl
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.halvors.WeatherControl.WeatherControl.hasPermissions(WeatherControl.java:129)
        at com.halvors.WeatherControl.WeatherControlPlayerListener.onPlayerInteract(WeatherControlPlayerListener.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:749)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-10 19:15:29 [SEVERE] Could not pass event PLAYER_INTERACT to WeatherControl
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.halvors.WeatherControl.WeatherControl.hasPermissions(WeatherControl.java:129)
        at com.halvors.WeatherControl.WeatherControlPlayerListener.onPlayerInteract(WeatherControlPlayerListener.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    [CODE]
    This is a really big problem for my server.
     
  6. Offline

    jimralphy


    I believe it should work now if you copy and paste that into your .yml file.

    I think your problem was that you had multiple "default" classes.
     
  7. Offline

    GROMkill

    H
    Hey, thanks a bunch :) I was really careless when coding stuff for the first time and forgot the spacing. I also had the Inheritances wrong!
     
  8. Offline

    Jeyge

    You need a chat plugin like iChat.
     
  9. Offline

    Triodes

    Forgive me if this has allready been posted elsewhere, but is there a way to block an op from using a specific standard server command, like '/time set'. Because I do want one of my friends monitoring my server but i don't want him to screw up time and other things

    greetz
    Triodes

    @halvors
    i got these errors because i did the inherritances wrong
    make sure that someone with the * does not inherit permissions from anyone and don't give someone a permission it allready inherrited.

    hope this helps
    Triodes

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

    Jeyge

    I'm not sure if DefaultPermissions can remove permissions from someone who is an OP, but I do know you can remove him from the op.txt file and just grant him the permissions you want.
     
  11. Offline

    Triodes

    That is exactly what i'm looking for.

    Thanx :)
     
  12. Offline

    Justappeard

    well I pudded
    well Thx for reaction this fast but... ): dint work
     
  13. Offline

    cliff777

    Is your config file named correctly? If your world name from proporties is 'bob' then your config should be bob.yml
     
  14. Offline

    Nove Lenducten

    can somebody explain to me: prefixes, suffixes and nodes? or link me to a page tht can show me. im very simple minded so no complex sites with big words pls :(
     
  15. Offline

    Dragonntiger

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: null
            permissions:
            - essentials.spawn
            - essentials.help
            - mywarp.warp.*
            - essentials.rules
            - essentials.motd
            - essentials.afk
            - essentials.me
            - essentials.list
        VIP:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - AutoRepair.access
            - AutoRepair.repair
            - essentials.home
            - essentials.sethome
            - essentials.compass
            - essentials.jump
            - essentials.back.*
            - essentials.msg
            - essentials.mail.*
            - craftbook.*
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - VIP
            permissions:
            - essentials.time
            - essentials.item
            - essentials.tp
            - essentials.tpahere
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
        Skrillex:
            default: false
            info:
                prefix: '&3'
                suffix: '&4'
                build: true
            inheritance: null
            permissions:
            - '*'
        Cpt:
            default: false
            info:
                prefix: '&8'
                suffix: '&9'
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        Mynameisskrillex:
            group: Skrillex
            permissions: null
        SCPO:
            group: VIP
            permissions: null
        aguyyoudontkno:
            group: Admins
            permissions: null
        iAmKewl69:
            group: Cpt
            permissions: null
    
    It is not working for scpo, since hes not an admin, err the message he gets is "You do not have access to that command." and hes just basically typing in /list, even /help doesnt work for him o-o
     
  16. Offline

    Steven

    Man I am a huge fan of Permissions. Kudos to you. But the one feature I have been waiting on is in game commands to add people to groups. It would be so convenient if I could do /whitelist add (username) [which works].
    /permissions add (username) (group)
    I am not a developer and have no knowledge about how you would do this, but I think that would be so amazing!
     
  17. Offline

    Jeyge

    Better but you still didn't give me everything. You did give me enough though. He doesn't have permission to use /help and /list. Give him essentials.help and essentials.list either under his user node or under VIP and he should be good to go.

    You might just get your wish in 3.0 but for now you can use PermissionsPlus.

    While prefix and suffix are stored in the permissions file, they really aren't used by Permissions. You will find a better description of them in one of the many chat mods out there. Take a look at iChat for an example.

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

    Radio Red

    Can anyone confirm this works with 766, please?
     
  19. Offline

    Apophis3d

    does this thing not work with the permissions.xml file that simple server uses, reason I ask is I lost all functions that do with server ranks. This plugin seems to be overriding them is there someway to make them work together?
     
  20. Offline

    Emerson

    Ok so ive been using bukkit with no problems for a few hours now. No errors. I dont know what happened buy all of a sudden it gives me a crap load of errors. Here is what i get when i reload or a person join
    http://pastey.net/149854
    Its not a problem with HeroCHat because it also happened with iChat. If you could find a way to fix this it would be great =) I have also been having some problems with BigBrother. Wonder if that could be the cause of the problems.

    EDIT: So i removed BB and the error went away =P Now to ask the BB people =/
     
  21. Offline

    Jeyge

    I'm not sure what simple server is but I don't think this plugin would override any commands as it only has one command.
     
  22. Offline

    NintendoBrando

    I'm doing exactly as the instructions say and for some reason its not working.
    I tried copying my yml file to that website to check it and it came up error free, however whenever I go in the game and try to use a plugin, the prompt tells me I dont have the permission to use that plugin.
    I'm the server host and admin, I used my name and set it to the admins group and still get this problem.
    I'd very much appreciate it if someone can help me out on this. Dx
     
  23. Offline

    Jeyge

    We'll need your yml file to make sure there aren't any problems there. Include your server.log when you post it. While getting those, you can check to make sure you aren't running the 2.7.1 version of Permissions and instead have 2.7.2.
     
  24. Offline

    carmelcorn

    Hi, I love this plugin, and have been using it for a while, but I have an issue:
    Whenever I restart the server, or reload the plugins, it takes out the single quotes in the yaml file and deletes some of the spaces, making it unreadable to permissions. I previously tried locking it, but that makes it unable to be used with PermissionsPlus, which I use to assign permissions in game.
    Any help would be much appreciated, thanks.
     
  25. Offline

    Jeyge

    That sucks but it isn't Permissions doing that. Permissions should just read the file.
     
  26. Offline

    rcjrrjcr

    PermissionsPlus is the one doing that. Ironically, when Permissions did that in 2.6, many users were complaining.
     
  27. Offline

    Veatbreaker

    Hi, newbie question...
    is there a "Not" code or "exceptions" command for permissions?

    i just want to block one command that the default user cant use
    i.e. (- 'mcmmo.tools.mcgod') so the user can use any command freely except commands that has to do with this node
     
  28. Offline

    Psycho Robot

    If you don't give them that node, they won't be able to do it. Though if you have given it to them incindentally via wildcards (e.g. mcmmo.tools.*), you can remove it using

    Code:
    - '-mcmmo.tools.mcgod'
    
     
  29. Offline

    Veatbreaker

    ^awesome thanks
     
  30. Offline

    cocoson

    maybe some one could help me i use sqlpermissions plugin. also note i removed it and dropped the database for it but now seems that permissions it self is messed up and cant get it to fix it self i have re-downloaded permissions multi times now and still nothing
    permissions.jpg

    it keeps creating the file permissionswolrd2.yml
    and keeps deleting my would2.yml inside the permission folder
     
  31. anti-build doesent rly work. if a player comes in and cant build, the idea is he is unable to grief. well if he gets a hold of a bucket he can pick up water for example and still place it.
     
Thread Status:
Not open for further replies.

Share This Page