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

    Nathan C

    Er, it is because your formatting of your yml is all wrong.

    Should look like this. Notice the SPACES under the "permissions:".

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&7'
                suffix: '&f'
                build: true
            inheritance:
            permissions:
                - 'essentials.me'
                - 'essentials.tpaccept'
                - 'essentials.tptoggle'
                - 'essentials.warp'
    You also have to name the config after the world.

    Try reading the instructions, they tell you all this in the OP.
     
  3. Offline

    microskies

    I hate to seem like I don't know what I'm doing, and jumping straight into the deep end, but how would I make it so a group can use only a specific command such as /give or /i and nothing else?
    I have assumed from looking at other .yml files that I would put the command under permission such as (Bearing in mind I have NO Experience with this stuff, and before you say it, no I'm not stupid, this is how I learn html and css, through hand-on stuff):

    builder:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - give
    - i


    Or am I completely wrong?

    Also I am assuming I'm changing the name from RENAME-ME.yml to config.yml?

    Thanks for your help :D

    EDIT: Nevermind, I have found out what I need to put in, I didnt realise it was as easy as it is :D
     
  4. Offline

    ryanertel

    alright i just updated my server to 612 and permissions still doesnt work im not quite sure what the problem is because im new to bukkit and am very tired right now (probably half the problem) but im gonna post my permissions file and see if you guys can help me

    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:
    - '
    builder:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'micro.minecartstarter.can''wolfpound.use''signColours.*'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'cuboidplugin.select''cuboidplugin.cuboid''micro.minecartstarter.can''wolfpound.create''wolfpound.use''wolfpound.adopt''signColours.*'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    Owner:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'

    thats just groups but i dont have any users set yet
     
  5. Offline

    Celtic Minstrel

    Or just use the /reload command which reloads all plugins.

    Well, I expect there are plugins that override /kick, but yeah, generally you'd be correct. :)

    Yes, but not with Permissions. I posted a link to a separate plugin that will allow it earlier in the thread (three or four pages back), but I'll give it a thread of its own soon.

    If you want it now and don't want to hunt, it's here. Keep in mind that it's a bit glitchy at the moment.
     
  6. Offline

    Itssnowing

    @ryanertel See how your permissions are listed like this?
    Code:
    - 'permission.example''example.command'
    
    You actually want it like this:
    Code:
    - 'Permission.example'
    - example.command'
    
    There's another way you can do it which will let you put all the permissions on one line, but I'm not actually sure how to do that.

    @Celtic Minstrel
    Ah, ok. I'll add that, thank you ^_^
     
  7. Offline

    Hmmm

    Ty :D
     
  8. Offline

    Magister

    Hey, I have a problem with Permissions. (Im using 612) I have iChat installed. When I log onto my server, all my Permission configuration doesn't load. Im just a normal op, with no custom prefix. Normal players are YELLOW. Wtf? Because I am op, and not admin, I can't access certain commands, for example Magic Carpet. Please help. All my plugins are updated for 612, I have no errors in the server window. Help please.
     
  9. Offline

    Gary Ervin

  10. Offline

    Valdiralita

    when i load permission (only) i get this in console at every startup:

    [Info] Invalid config file found and converted to proper name/format.

    is it serious?
     
  11. Offline

    nitroxygen

    please update this im getting alot of random errors from mods that should work find with this.
     
  12. Offline

    Itssnowing

    Naw, just ignore it. Everyone's been getting it.

    Wouldn't that be the mods' faults, not permissions?

    Anyway, what errors?
    (You might want to post the errors in their respective threads too.)

    Post your config, please. Are you getting any errors?

    Permissions errors and how to solve them!

    Could not load plugins\Permission.jar in plugins:Null

    If you get this error:

    "Could not load plugins\Permissions.jar in plugins: null"

    From what I've found, it could be one of two problems:
    1) Your CB build and your Permissions version don't work.
    or
    2) You have a problem in your config file. Download this PDF, and look near the end of the error. Does the PDF file say what the problem is, and how to fix it? Do that!
    If not, post here.

    Invalid Config file found and converted to proper name/format

    This error:

    "Invalid config file found and converted to proper name/format."
    Will happen almost no matter what. Ignore it, it doesn't do anything.

    So I downloaded the .jar file and....

    Stop. If you're starting for the first time, download the .zip file, open it, and drag the contents into the plugins folder. Don't use the extract option, otherwise you'll end up extracting the contents of the .jar file. Just drag the contents.
    After dragging the contents out, you should have a folder with the config file in it. Viola!

    Permissions-worldname-.yml

    Getting a permissions-worldname-.yml file in your plugins folder is a bug. It (I think) means that your real permissions config.yml has something wrong with it, or it's not there. I'm not quite so sure about this, but download the .zip file from the first post and extract the contents to your plugins folder. (Confirmation needed)

    Config file info:

    -They need spaces, not tabs.
    -If you have the - '*' permission, you don't need any other nodes for that person/group, unless you want to take a permission away from them. If you want to do that, give them a node vaguely like this: - '-example.node'
    (See that extra dash? It's important.)
    -Read the comments in the file, seriously. They say a lot.
    -When putting someone into a a group, make sure it's spelled correctly. Putting someone in the group "Admin" while the group is called "Admins" will not put them in that group.
    -If a group has the - '*' permission, don't have them inherit from another group.

    /Permissions -reload all command giving console errors

    Try using /reload. This will reload all your plugins, so be warned!
    OR.
    Open your config file, and see if there's a user in it with a name entirely of numbers. Put quotes around their name. Try the command again. If it still gives errors, restart the server.
    (Thanks to Celtic Minstrel and Fffizzz for the solutions to these!)

    (Any errors I've missed? Something I got wrong? Another way to fix an error? Tell me!)
    (Coppied this over to the new page for the sake of people seeing it.
    (Is it okay for me to keep posting this?)
    (Removed code tags because they keep screwing with the post.)

    @TheYeti can you make a permanent link to this post somewhere? That way I can just edit it and have people see the errors, without needing to link it to them/repost continuously.

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

    Donny

    even with "*" as permissions it tells me i dont have permissions. My admin cant do almost everything ... here is my permissions
    http://pastebin.com/R9JefZcF
     
  14. Offline

    nitroxygen

    well the big error is that the config line wont let me add any lines at all anywhere in the file, without breaking it. Im using Notepad++ just like it says to and i can type stuff but its all turning red meaning its broken.
     
  15. Offline

    Psycho Robot

    According to this, your admins don't have all permissions, your "op" group does. I assume that's what you were referring to? Regardless, your OP group should not inheirit admin permissions because they already have all permissions anyways.
     
  16. Offline

    RazMaTaz

    red stuff just means changed. it does that to me too. I just save it is working. I did set the 4 spaces for tab thing in the settings.
     
  17. Offline

    Itssnowing

    Add little quote things around each permission. Currently, the permissions in your config file look like this:
    Code:
    - example.permission
    - plugin.command
    
    What you want it to look like is this:

    Code:
    - 'example.permission'
    - 'plugin.command'
    
     
  18. Offline

    Donny

    Thank you!!!!!!!!!!
    (my * need that also? so like'*'?) because thats how it is and not working

    I converted from groupmanager my excuse lack of knowledge =P
     
  19. Offline

    Itssnowing

    Would this be a bad time to mention that groupmanager and permissions use the same format for the config files?
    Anyway, you want a ' not a ".
    But yes, it's - '*'.
     
  20. Offline

    rmb938

    add a option so you can use MySQL? Shouldn't be to hard.
     
  21. Offline

    Cool12309

    Change log, in the download:

    "2.5.4"
    "3.0"

    Title and stuff needs updating.

    Change log, in the OP:

    "2.5.4"
    "2.5.5"
    > No 3.0

    Well, 2.5.5 seems to be missing from the change log.
     
  22. Offline

    Donny

    It worked perfectly fine on groupmanager =)
    and thats how my '*' permission is and its still not working with everything

    I get the "you dont have permissions for this" message

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

    Celtic Minstrel

    Two notes.

    1. You only actually need to quote the permissions if there is a * in them.
    2. Double quotes work perfectly fine as a substitute for single quotes as long as you're consistent.

    Just to save people from correcting things that will actually work fine. :)
     
  24. Offline

    Itssnowing

    What would I do without you XD
    Edit: Though it's probably good for people to get used to using quotes >.>
     
  25. Offline

    Celtic Minstrel

    Not a bad thing to get used to, but less work for us if we don't say "Oh, that's wrong" when it's not. :p
     
  26. Offline

    Itssnowing

    Fair 'nuff XD
     
  27. Offline

    Donny

    Any idea why '*' still not giving all permissions?

    *taking advantage of having two knowledgeable people active * =)
     
  28. Offline

    Jake Rees

    ok so whenever i try to type in a command it says that i do not have access to this command but my permissions looks like this
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                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:
        umrebel55:
            group: Admins
            permissions:
    
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
     
  29. Offline

    Itssnowing

    @Donny Try adding more spaces. Right now you have two for each group, and four for each groups settings, and six for each group's prefix/suffix. Try giving the groups four spaces, the settings eight, and the prefix/suffix parts twelve.

    Also, each permission needs twelve spaces, too.

    Edit:
    Also, putting /command (ex. /god, /heal, /region) into the permissions won't work. You'll need to figure out what the actual permission node is before that will work.

    Edit: If you're going for knowledgeable, listen to Celtic over me. He knows more, I just post spam so I look like I know things. ;)

    @Jake Rees Are you getting any errors?
    Edit:
    What's the name of your config file?

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

    Jake Rees

    just config, and there is a random text file in the plugins file that says (myservername)Permissions which is blank on the inside
     
  31. Offline

    Itssnowing

    Your config file is called config? There's your problem, you'll need to change the name so that it's by the same name as your world :)
     
Thread Status:
Not open for further replies.

Share This Page