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

    hunty197

    My server log isnt working so i cant post
     
  3. Offline

    SycoPrime

    Please add a getGroup to PermissionHandler that takes just the group name and infers the world from somewhere (server.getWorlds()(0)?), so that plugins can remain backwards-compatible with older/alternate versions of permissions.
     
  4. Offline

    Thenaz

    Thanks you so much Malkierian
    I will try this and try this notepad++ but will it automatically use ++ instead of notepad?
    Im using notepad++ now and shouldnt I have ''s?
     
  5. Well my server hoster cannot figure out why my permissions won't load. I run craftbukkit 617, permissions 2.6, worldedit, worldguard, ichat, and essnetials. I'm attaching my server log and my world.yml. I've been going over this for days and cannot figure out what the problem is.

    Thanks for your help.
     

    Attached Files:

  6. Offline

    JackTDawson

    For those looking for a combination that works temporarily until there is a fix for all this.. This one works on one of my two servers. This server has been running for about a month now with no problems. In fact, I checked the logs, I had NO java errors for almost a week now.

    Show Spoiler

    Bukkit 669
    Permissions 2.5.5 (Phoenix)
    Essentials 2.1.14 ( All accept the Group plugins - both of them )
    Magic Carpet 1.5.2


    But this is all I run on that server.

    The newest 670 trashed it. . so I went back to 669 and 2.5.5 of permissions and everything works just fine. To those who got 670 and 2.6 permissions running.. please explain how you got it running. Don't come in here calling us admins a bunch of lower class people because you have yours running. SHOW US what we could do or don't comment at all ! All your doing is trolling.
     
  7. Offline

    u83rju1c3

    prefixes do not work for me, and i have no chat plugins that i am aware of....
    please help me get these working.

    Show Spoiler
    sorry I can't find an answer with google or on here. how do i set up prefixes? i would like colours and text. this is not working:

    prefix: '&5'
    suffix: ''


    nor is:

    prefix: '[admin]'
    suffix: ''


    EDIT: yes the proper spacing is in there, I didn't change it but pasting didn't come out right.
     
  8. Offline

    u83rju1c3

    You have all kinds of extra tabs and spaces in your world.yml
    I spent an hour going thru it for u and removing them. try the version i've uploaded for u
     

    Attached Files:

  9. Offline

    uncovery

    All works fine for me. Not sure what the problem is here. I did not change anything. Have 2.6 and 670 running smoothly.

    I would say the fact that you do not have a chat program is your problem? Don't you need a simple chat progam to make the prefix work? at least the chat add-on from essentials?

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

    sibbo7

    My Users are saying that they get a No Permission Error when they're rightclicking.. is this Problem known? Can anyone tell me what to do..

    First i thought it was WorldGuard but even after deleting WG it doesnt change
    http://i.imgur.com/gfmyZ.png
     
  11. Offline

    Danzzz

    uncovery could u explain how you got that 2 work as i know there are some eager people trying 2 get it 2 work ! ? permissions config ?
     
  12. Offline

    JackTDawson

  13. Offline

    Stales89

    In regards to my previous post and 'rcjrrjcr' saying I have a bad character somewhere, I cannot find it.
    Could someone help me out please?

    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: true
            inheritance:
            permissions:
                - 'SpawnControl.sethome.basic'
    
                - 'SpawnControl.sethome.proxy'
    
                - 'wormhole.use.sign'
    
                - 'wormhole.use.dialer'
    
                - 'localshops.buysell'
    
                - 'essentials.signs.mail.create'
    
                - 'essentials.signs.mail.use'
    
                - 'essentials.home'
    
                - 'essentials.afk'
    
                - 'essentials.rules'
    
                - 'essentials.motd'
    
                - 'essentials.me'
    
                - 'essentials.list'
    
                - 'essentials.mail.send'
    
                - 'essentials.whois'
    
                - 'essentials.nick'
    
                - 'jail.command.jailcheck'
    
                - 'mcmmo.chat.partychat'
    
                - 'mcmmo.ability.woodcutting'
    
                - 'mcmmo.ability.mining'
    
                - 'mcmmo.ability.axes'
    
                - 'mcmmo.ability.excavation'
    
                - 'mcmmo.ability.swords'
    
                - 'mcmmo.ability.unarmed'
    
                - 'mcmmo.item.chimaerawing'
    
                - 'mcmmo.skills.*'
    
                - 'mcmmo.commands.*'
    
                - 'turnstile.use'
                - 'ecoCreature.*'
                - 'MonsterHunt.*'
                - 'Waypoints.*'
                - 'Lockette.*'
                - 'falsebook.*'
                - 'SleepAnnounce.*'
                - 'WolfPound.*'
                - 'MinecartMania.*'
                - 'pvpreward.reward'
                - 'MultiVerse.*'
        Moderator:
            default: false
            info:
                prefix: '&cMODERATOR&c'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'iConomy.*'
    
                - 'localshops.buysell'
    
                - 'Waypoints.*'
                - 'localshops.manage'
    
                - 'localshops.manage.owner'
    
                - 'localshops.destroy'
    
                - 'localshops.reload'
    
                - 'localshops.admin'
    
                - 'mcmmo.*'
    
                - 'mcmmo.skills.*'
    
                - 'SpawnControl.sethome.basic'
    
                - 'SpawnControl.sethome.proxy'
    
                - 'SleepAnnounce.*'
                - 'wormhole.*'
    
                - 'essentials.*'
    
                - 'jail.command.*'
                - 'ecoCreature.*'
                - 'WolfPound.*'
                - 'MonsterHunt.*'
                - 'MinecartMania.*'
                - 'Lockette.*'
                - 'falsebook.*'
                - 'MultiVerse.*'
        Admins:
            default: false
            info:
                prefix: '&eGOD&e '
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'ecoCreature.*'
                - '*'
    
                - 'Waypoints.*'
                - 'iConomy.*'
    
                - 'localshops.buysell'
    
                - 'localshops.manage'
    
                - 'WolfPound.*'
                - 'SleepAnnounce.*'
                - 'localshops.manage.owner'
    
                - 'localshops.create'
    
                - 'localshops.destroy'
    
                - 'localshops.reload'
    
                - 'localshops.admin'
    
                - 'mcmmo.*'
    
                - 'RedeemCodes.*'
    
                - 'SpawnControl.*'
    
                - 'worldedit.*'
    
                - 'wormhole.*'
    
                - 'MinecartMania.*'
                - 'essentials.*'
    
                - 'jail.command.*'
    
                - 'fakemessage.*'
    
                - 'MultiVerse.*'
                - 'turnstile.*'
    
                - 'turnstile.admin.*'
                - 'MonsterHunt.*'
                - 'Lockette.*'
                - 'falsebook.*'
                - 'pvpreward.admin'
    
    ##
    # 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:
        Stales89:
            group: Admins
            info:
            permissions:
                - ''
    
        Pyromanta:
            group: Admins
            info:
            permissions:
                - ''
     
  14. Offline

    rcjrrjcr

    Strange. That message isn't from Permissions. What plugins are you using?
    Looking.
     
  15. Offline

    JackTDawson

    - 'pvpreward.admin'

    this line under admin.. its whats causing the error.. its at the bottom of the admin group.
     
  16. Offline

    rcjrrjcr

    Found your problem. When I pasted the file into Notepad++, there was a strange character in the 'pvpreward.admin' string, under Admins. It looks like this:
    - 'pvpreward.USadmin'
    US being the strange character. Try retyping that line.

    EDIT: Ninja'd.
     
  17. Offline

    Stales89

    OMG, thanks for the time taken to look at my error, but I just opened it in Notepad++ as a previoous post suggested, and what previously in Notepad said "- 'pvpreward.admin'", in Notepad++ it said "- 'pvpreward.USadmin'.

    I deleted the 'US' and all it fine!

    Thanks for the time again!
     
  18. Offline

    JackTDawson

  19. Offline

    sibbo7

  20. Offline

    rcjrrjcr

    Progress report on what I've written so far in my pull request:
    • Fixed (add|remove)(User|Group)Permission methods
    • Replace StringTokenizer with split().
    • Replaced some strange 'x==null ? "" != null : !x.equals("")' checks with clearer 'x==null||x.equals("")'
      • I'm guessing this may something have to do with the default group issues
    • Added support for negating permission ranges
      • Example: "-someplugin.*" removes all someplugin permissions from the user/group
    Note that I am not the developer of this plugin and my changes may not be incorporated into the plugin.

    Maybe one of those plugins is the cause of the messages? Can you check on their respective threads if they print out that message, especially for BigBrother, CommandBook, LWC, WhiteList, and WorldGuard/Edit. Also, WorldGuard/Edit may have some problem finding groups as it uses an old method from before the multiworld update.

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

    sibbo7

    I deleted WG, WE and Commandbook from the Server.. Error is gone.. so what now? Do i have to wait until those are updated or what?

    That message all the time is damn annoying.. but i'd like to keep those ;(
     
  22. Offline

    rcjrrjcr

    There is probably something wrong in their Permissions interfaces. I suppose you'll have to wait for them to update.
     
  23. Offline

    sibbo7

    Damn.. seems to happen to all of his Plugins.. we, wg, commandbook, craftbook.. getting permission error with every single plugin.. now my users cant even use signs for bridges and elevators :(
     
  24. Offline

    Darktrance

    Have a Problem with 2.6. My Default User Class get alltime "You dont have Permission to do that" promt but that isn´t right. All right klick Operation = YdhPtdt. Need pls a Solution.

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        User:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - lwc.protect
            - deathmessageplugin.*
            - general.player-info
            - general.spawn
            - stargate.use
            - stargate.create
            - stargate.create.personal
            - stargate.destroy.owner
            - general.spawn
            - JumpBlock.Use
            - JumpBlock.Create
            - slowhealth
            - multihome.home
            - multihome.sethome
            - iConomy.payment
            - iConomy.rank
            - iConomy.list
            - MobBounty.mb
            - wolfpound.use
            - craftbook.mech.elevator.*
            - craftbook.mech.gate.*
            - craftbook.mech.bridge.*
            - signtrader.Use
            - bonuses.*
    
     
  25. Offline

    rcjrrjcr

    @sk89q 's plugins don't work with Permissions, since the Multiworld update. Apparently, his interface still uses the old methods, which only need the player and the node, not the world. Look at https://github.com/sk89q/worldedit/...bukkit/migration/NijiPermissionsResolver.java for more details.

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

    sibbo7

    So i either have to downgrade Permissions or wait for the Plugins to be updated? I guess 2.5.5 worked
     
  27. Offline

    o_be_one

    Hi all,

    CraftBukkit 670.
    Permissions 2.6, edited by vi and again by Notepad++.
    World : only one named "r0x".
    Plugins : WorldEdit, WorldGuard, mcMMO, iConomy, Citizens, LocalShops, LWC, Jail, HeroChat, CraftIRC, CraftBook, BigBrother, Stats & Achievements, MinecartMania, Essentials & EssentialsSpawn.

    Bug : Some permissions won't work.

    Description : i have 5 groups (Default, VIP, Ambassadeur, Moderator and Admins). Moderator and Admins are "*".
    Default, Moderator and Admins groups has theyr rights working, but VIP and Ambassadeur doesnt work.
    Groups who are not working have message error like : "you havent access to that". With nothing in theyr hand en when they clic, they have this error message.
    Before, all was working. I think that i have the same problem as many of you.

    Attached is my yml permissions file.

    Thanks for your attention. I hope this bug will be updated.
     

    Attached Files:

    • r0x.txt
      File size:
      8.2 KB
      Views:
      10
  28. Offline

    rcjrrjcr

    What permissions don't work? Are you referring to CraftBook/WorldEdit/WorldGuard permissions? Those appear to be incompatible with 2.6. I'm not sure about 2.5.5 though.
     
  29. Offline

    o_be_one

    All permissions, commands like /home /spawn /god ... All :).

    I've tried with Permissions 2.5.5, same bug.

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

    rcjrrjcr

    There are some possible reasons:
    • Group inheritance is a little messed up. This may cause a problem.
    • sk89q's plugins use a removed method to check for permissions. This may prevent users from using Craftbook/World(Edit|Guard).
    Try removing CraftBook, WorldEdit and WorldGuard and running it again.
     
  31. Offline

    sibbo7

    Ok seems to work with Permissions 2.5.5.. then ill wait for sk89q to update his Plugins before updating to 2.6 again
     
  32. Offline

    OrtwinS

    @TheYeti
    Hi,
    I'd really like to migrate back to Permissions (using GM now) because this is a lot more up to date, but there are some issues...

    I have simple roleplay server, but it uses quite a lot of GMs unique selling points, you might want to add them, it would make Permissions a viable alternative.

    To migrate I really need:
    Show Spoiler

    - Ingame commands to add/remove users from groups
    - Ingame commands to add/remove permissions from groups
    - Sub-group functionality, so a roleplay with 4 factions, 4 jobs, and 4 skills only needs 12 groups, in stead of 4^3=64 nested inheriting groups.
    - Exception nodes, so I can for example allow a lot like: 'essentials.*' and block a few with '-essentials.item' '-essentials.give'. Or block many and allow specific commands like: '-worldedit.*' '+worldedit.superpickaxe'


    Also nice would be:
    Show Spoiler

    - removing the 'overload causes trouble' thing... it doesnt cause trouble in GM, why would it here?
    - being able to add extra permissions to specific users (ingame as well plz.)
    - world mirroring of permissions, so I dont have to type everything twice... or more.


    Groupmanager 1.0 alpha5 is still working on CB556 - CB670, but I dont know for how long it will last, but I cant migrate without that first list of functions, or lose my roleplay system.

    Any chance this can/will be implemented?
     
Thread Status:
Not open for further replies.

Share This Page