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

    Platinus

    Hello, I got Permissions working on my server but I'm still the default rank "Noob" please tell me what I did wrong.

    Here is the config file

    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:
        Noob:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.home'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.setwarp'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.time'
                - 'essentials.spawn'
        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:
        Myplatinus:
            group: Admins
            permissions:
                - '*'
        MyysErnst:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
        lioi123:
            group: Moderator
            permissions:
        thundercharlie:
            group: Moderator
            permissions:
     
  3. Offline

    some1

    lol how did you got it working?
    and by the looks of your permissions it should be working probely
     
  4. Offline

    mrgreaper

    whats involved in changing from group manager to permisions, will it read the group manager config and adapt it to permisions?
    were thinking of downgrading as at mo group manager declares a admin as a moderator a admin amoderator a vip aregistered user and a default user this makes detectors looking for groups awkward
     
  5. Offline

    Platinus


    It is working, the only problem is that I'm not Admin.
     
  6. Offline

    dompie

    RTFM,
    world.yml, line 53-54
    Code:
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    
     
  7. Offline

    mrgreaper

    Last edited by a moderator: Jul 17, 2016
  8. Offline

    Jandalf

    remove the inheritance from admins, cause they already have all permissions with '*'

    yeah some things:
    1. u inheritance Default which doesnt exists
    2. remove '*' from Myplatinus because he has all permissions through admin

    no it doesnt matter, please copy ur yml file to pastebin.com, ill read over it

    yeah nice codesnip but it doesnt help anything. we dont need fragments, we need ur yml file copied to pastebin.com.

    i dont know but u could simply try^^ and if u cant use casesensetive...

    try http://forums.bukkit.org/threads/se...functionality-to-permissions-plugin-531.9277/

    douple posts never help! please copy ur yml file to pastebin.com

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

    Drakia

    It was in 2.5.4, but you fixed in already in the latest Git (2.5.5) from the looks of it, so just ignore me :) It is still an issue in the currently released version though.
     
  10. Offline

    Platinus

    ah, I see now. I'm admin even tho I still have the [Noob] infront of my name? How do I change it to something else?
     
  11. Offline

    dompie

    Yeah, I'll probably know how it works afterwards. But I'll still don't know how it should work correctly.
     
  12. Offline

    icomeinpieces

    this may have been asked before but i was wondering if someone could post their permissions config file.
    I am having trouble understanding how to set my permissions and how to assign them to specific people.
    I am using the latest permissions and CB 556. Also does anyone know if the permissions of mcMYadmin interferes with this permissions plugin, or vice versa?
     
  13. Offline

    Chites

    I seem to have a problem as well. Whenever I start the server console and it loads the plugins, I get this:
    Code:
    13:32:49 [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:113)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:159)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:107)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: mapping values are not allowed here
     in "<reader>", line 56, column 19:
                    suffix:
                          ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:74
    5)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:307)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:111)
            ... 8 more
    It's the only plugin I have that's having problems, and I can't make heads or tails of this.

    Edit: Okay, it's not doing that anymore after I redownloaded Permissions-- I guess what I had was somehow outdated, or something. I'm no longer getting any error messages in the console, but I'm unable to do most things ingame, like /give or /time. My permissions file (FLOAT.yml, as my map is named FLOAT) is as follows:

    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'deathtpplus.deathtp'
                - 'deathtpplus.streak'
                - 'deathtpplus.deaths'
                - 'deathtpplus.kills'
                - 'myhome.home.basic.*'
                - 'ecoCreature.Rewarding.*'
                - 'lytreehelper.destroyall'
        Moderator:
            default: false
            info:
                prefix:[Op]
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'general.items'
                - 'general.player-info'
                - 'timeshift.shift'
                - 'spawnmob.kill'
                - 'lytreehelper.generate.trees'
                - 'lytreehelper.generate.forests'
        Admins:
            default: false
            info:
                prefix:[Admin]
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        Cador_2004:
            group: Moderator
            permissions:
        JelloThief:
            group: Moderator
            permissions:
        Chites:
            group: Admins
            permissions:
        RenegadeWarrior:
            group: Moderator
            permissions:
     
  14. Offline

    Drakia

    @Chites Your spacing is probably off, YML files are VERY case sensitive, don't use tabs, stick to either 2 or 4 space indentation but don't alternate.
     
  15. Offline

    Chites

    I updated my post with an inclusion of my permissions file. Thanks for replying so quickly.

    Edit: Hm. That error I originally had comes back whenever a config.yml is present in the Permissions folder, but disappears again when it's renamed.
     
  16. Offline

    mrgreaper

    ah will do, this is a left over from group manager oops

    what is the command to remove inheritence with out editing the yml file?
     
  17. Offline

    Moronmaster

    Here you go, dear sir:
    http://pastebin.com/xe2nWsY7
     
  18. Offline

    Danzzz

    Guys im having a real trouble with permissions and ichat ! here is my permission config i put the prefix as '&c' and it set my ingame name to [Admins]Danzzz but then i stopped and started my server and it went back to normal []danzzz hmmm.... ? and then i found out that my other plugins such as magiccarpet was not working and worldedit 'NO KNOWN PERMISSIONS DETECTED' thts like on all my plugins :9 plzz help

    Code:
    plugin:
        permissions:
            system: Not-Subbed
            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:
        Not-Subbed:
            default: true
            info:
                prefix: '&7'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Subbed:
            default: false
            info:
                prefix: '&7'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'simpleshop.buy'
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
                - 'essentials.*'
                - 'lwc.protect.*'
                - 'iConomy.payment'
                - 'mcmmo.skills.*'
                - 'uQuest.CanQuest'
                - 'uQuest.CanDropQuest'
                - 'magiccarpet.mc'
        Admin:
            default: false
            info:
                prefix: '&c'
                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:
        dan9999:
            group: Admin
            permissions:
        predatorc:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        ggggggggg:
            group: Moderator
            permissions:
     
  19. Offline

    xxxfakaxxx

    i think that u didn't delete "Tab" spaces and dont use &, use paragraph symbol. sry for bad eng :p
     
  20. Offline

    Chites

    I got mine working.. It turned out the GroupManager settings that some other plugins relied on were conflicting with Permissions. Everything works for me now!
     
  21. Offline

    Jesse57


    What group does it say you are in game?? like when you type anything??
     
  22. Offline

    srablaze

    can you add new groups if so how
     
  23. Offline

    alienman298

    it wont work for Craftbukkit build 544
     
  24. same for me... 2.5.4 permissions, and CB 544+ doesn't work. It gives a block error, saying that the jar file isn't a propper plugin (sorry... dont have the exact code, been workin to fix things )
     
  25. Offline

    Karinth

    So I keep getting this message when starting my server


    Code:
     [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j                                                                                                                     ava:113)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.                                                                                                                     java:159)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager                                                                                                                     .java:107)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct                                                                                                                     orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC                                                                                                                     onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j                                                                                                                     ava:109)
            ... 8 more
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 44, column 1:
    
        ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja                                                                                                                     va:360)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18                                                                                                                     3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(                                                                                                                     ParserImpl.java:510)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav                                                                                                                     a:203)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java                                                                                                                     :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java                                                                                                                     :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java                                                                                                                     :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12                                                                                                                     2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons                                                                                                                     tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:                                                                                                                     82)
            ... 13 more
    
    This is my permissions set up

    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
    
        Player:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
                #CommandBook
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.rules'
                - 'commandbook.msg'
                - 'commandbook.whereami'
                - 'commandbook.whereami.compass'
    
                #worldguard
                - '/stack'
    
                #multiverse
                - 'multiverse.list'
    
                #ChestShop
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
    
                #iConomy
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'iConomy.list'
     
        Mod:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Player
            permissions:
    
                #bukkit
                - '/spawn'
    
                #Commandbook
                - 'commandbook.give'
                - 'commandbook.give.other'
                - 'commandbook.time'
                - 'commandbook.teleport'
                - 'commandbook.teleport.other'
                - 'commandbook.locations.coords'
    
                #worldguard
                - '/stopfire'
                - '/god'
                - '/heal'
                - '/slay'
                - '/locate'
    
                #SpawnControl
                - 'SpawnControl.config'
                - 'SpawnControl.groupspawn.set'
                - 'SpawnControl.sethome.proxy'
                - 'SpawnControl.spawn.set'
    
                #MultiVerse
                - 'multiverse.portal.create'
                - 'multiverse.portal.destination'
                - 'multiverse.portal.list'
                - 'multiverse.portal.remove'
                - 'multiverse.portal.select'
                - 'multiverse.tp'
    
                #Spawn List
                - 'spawnlist.item'
                - 'spawnlist.give'
    
                #ChestShop
                - 'iConomyChestShop.shop.admin'
                - 'iConomyChestShop.shop.create'
    
                #Citizens
                - 'citizens.create'
                - 'citizens.settext'
                - 'citizens.remove.singular'
                - 'citizens.remove.all'
                - 'citizens.help'
                - 'citizens.color'
                - 'citizens.colour'
                - 'citizens.setitem'
                - 'citizens.move'
    
                #iConomy
                - 'iConomy.admin.grant'
                - 'iConomy.admin.set'
                - 'iConomy.admin.stats'
                - 'iConomy.admin.reset'
                - 'iConomy.admin.account.create'
                - 'iConomy.admin.account.remove'
    
    
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
        Humani:
            default: false
            info:
                prefix: '&bHumani&1'
                suffix: ''
                build: true
            inheritance:
                - Player
            permissions:
    
        Daemon:
            default: false
            info:
                prefix: '&4Daemon&1'
                suffix: ''
                build: true
            inheritance:
                - Player
            permissions:
    
        Demigod:
            default: false
            info:
                prefix: '&9Demigod&c'
                suffix: ''
                build: true
            inheritance:
                - Mod
            permissions:
    
    
    
    users:
        Karinth:
            group: Demigod
        saturnine_nl:
            group: Demigod
        lsky:
            group: Demigod
        lumoc:
            group: Demigod
    So I do not see why it is not working, I also have to add 15 more plugins to the code. Please help
     
  26. Offline

    ThePilotGuy

    I'm getting this after i added the permissions for default commands: 9I was working fine before adding these)

    My Permissions folder:
    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.
    #   Does not work for the default world.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # 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:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    ##
    groups:
        Guest:
            default: true
            info:
                prefix: '[Guest] '
                suffix:
                build: false
            inheritance:
            permissions:
                - 'stargate.use'
                - 'general.time'
                - 'general.playerlist'
                - 'general.tell'
                - 'general.clear'
                - 'general.take'
                - 'general.kit.'
                - 'epiczones.zone.build.deny'
                - 'epiczones.zone.destroy.deny'
                - 'turnstile.use'
                - 'defaultcommands.motd'
                - 'defaultcommands.time.get'
                - 'defaultcommands.online.other'
                - 'defaultcommands.online'
        user:
            default: false
            info:
                prefix: '[User] '
                suffix:
                build: true
            inheritance:
                - 'Guest'
            permissions:
                - 'lwc.protect'
                - 'stargate.use'
                - 'general.spawn'
                - 'general.getpos'
                - '/stack'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'turnstile.make'
                - 'turnstile.link'
                - 'turnstile.price'
                - 'turnstile.owner'
                - 'turnstile.unlink'
                - 'turnstile.delete'
                - 'defaultcommands.message.other'
                - 'defaultcommands.afk.self'
                - 'defaultcommands.home.self'
                - 'defaultcommands.kit.self'
        Moderator:
            default: false
            info:
                prefix: '&6[&6Mod&6]&6 '
                suffix:
                build: true
            inheritance:
                - 'User'
            permissions:
                - 'stargate.use'
                - 'lwc.mod'
                - 'general.teleport'
                - 'general.take.other'
                - 'general.heal'
                - 'general.give'
                - 'general.give.infinite'
                - 'general.who'
                - '/stopfire'
                - '/allowfire'
                - '/locate'
                - '/heal'
                - '/god'
                - 'worldedit.navigation.thru'
                - 'worldedit.navigation.unstuck'
                - 'worldedit.navigation.ascend'
                - 'worldedit.navigation.descend'
                - 'iConomyChestShop.shop.admin'
                - 'turnstile.admin.list'
                - 'turnstile.admin.locate'
                - 'worldedit.superpickaxe'
                - 'defaultcommands.give.all'
                - 'defaultcommands.spawn.all'
                - 'defaultcommands.teleportallow.all'
                - 'defaultcommands.teleportlist'
                - 'defaultcommands.teleport.all'
                - 'defaultcommands.teleporthere.all'
                - 'defaultcommands.kill.all'
                - 'defaultcommands.heal.all'
                - 'defaultcommands.message.all'
                - 'defaultcommands.extinguish.all'
                - 'defaultcommands.kick.all'
                - 'defaultcommands.ban.other'
                - 'defaultcommands.unban.all'
                - 'defaultcommands.banlist'
                - 'defaultcommands.banlist.other'
                - 'defaultcommands.afk.other'
                - 'defaultcommands.freeze.self'
                - 'defaultcommands.freeze.other'
                - 'defaultcommands.mute.self'
                - 'defaultcommands.mute.other'
                - 'defaultcommands.unmute.self'
                - 'defaultcommands.unmute.other'
                - 'defaultcommands.home.other'
                - 'defaultcommands.warplist'
                - 'defaultcommands.kit.other'
                - 'defaultcommands.kitlist'
                - 'defaultcommands.top.self
                - 'defaultcommands.take.all'
                - 'defaultcommands.teleportposition.all'
                - 'defaultcommands.jump'
                - 'defaultcommands.fly.self'
                - 'defaultcommands.fly.other'
        Admin:
            default: false
            info:
                prefix: '&c[&cAdmin&c]&c '
                suffix:
                build: true
            inheritance:
                 - 'Moderator'
            permissions:
                - 'stargate.create'
                - 'stargate.destroy'
                - 'stargate.hidden'
                - 'stargate.private'
                - 'general.teleport.other'
                - 'general.teleport.coords'
                - 'general.teleport.other.mass'
                - 'general.getpos.other'
                - 'general.clear.other'
                - 'general.mobspawn'
                - 'general.kit-now'
                - 'WorldEdit.*'
                - 'epiczones.ignorepermissions'
                - 'turnstile.admin.ignore.owner'
                - 'turnstile.use'
                - 'defaultcommands.spawn.all'
                - 'defaultcommands.teleportdisallow.all'
                - 'defaultcommands.time.set'
                - 'defaultcommands.repair'
                - 'defaultcommands.fire.all'
                - 'defaultcommands.setwarp'
                - 'defaultcommands.delwarp'
        OWNER:
            default: false
            info:
                prefix: '&b[&bOWNER&b]&b '
                suffix:
                build: true
            inheritance: 'Moderator'
            permissions:
                - '*'
                - 'lwc.admin'
                - 'lwc.*'
                - 'stargate.*'
                - 'general.*'
                - 'kiwiadmin.*'
                - 'epiczones.admin'
                - 'defaultcommands.*'
    ##
    # ThePilotGuy has control over all commands.
    ##
    users:
        ThePilotGuy:
            group: OWNER
            permissions:
        JakubShark:
            group: Admin
            permissions:
        TheKling:
            group: Admin
            permissions:
        Xtoxikx:
            group: User
            Permissions:
    Error:
    Code:
    [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:113)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:109)
        ... 8 more
    Caused by: while parsing a block collection
     in "<reader>", line 100, column 13:
                    - 'stargate.use'
                    ^
    expected <block end>, but found Scalar
     in "<reader>", line 147, column 16:
                    - 'defaultcommands.take.all'
                       ^
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:82)
     
  27. Offline

    uncovery

    It would be great if we could have a "core" file that has global permissions and then sub-files for the worlds that override the core file wherever same users or groups are listed with the specified features. Otherwise it becomes a nightmare to make all permission changes in multiple files.
     
  28. Offline

    cjc343

    That's what the "copies: " feature is for...

    Can't use tabs, use 4 spaces for each level of indentation. Notepad++ can help with this.

    Check out the example file. It shows exactly how you define groups.

    Don't forget to rename it from config to your world name. Also:
    try this although it's probably wrong just a theory (open)
    # 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:
    Guest:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: ''
    permissions:
    - 'essentials.afk'
    - 'essentials.back'
    - 'essentials.help'
    - 'essentials.home'
    - 'essentials.kit'
    - 'essentials.kit.dirt'
    - 'essentials.kit.glass'
    - 'essentials.kit.sand'
    - 'essentials.kit.stone'
    - 'essentials.kit.tools'
    - 'essentials.kit.wood'
    - 'essentials.kit.food'
    - 'essentials.kit.workshop'
    - 'essentials.kit.torch'
    - 'essentials.list'
    - 'essentials.motd'
    - 'essentials.rules'
    - 'essentials.sethome'
    - 'essentials.spawn'
    - 'essentials.tpa'
    - 'essentials.warp'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.tptoggle'
    - 'essentials.warp'
    - 'essentials.warp.list'
    - 'essentials.msg'

    Builder:
    default: false
    info:
    prefix: '&e'
    suffix: '&f'
    build: true
    inheritance:
    - Guest
    permissions:
    - 'woolcolor.spawn'
    - 'essentials.kit.brick'
    - 'essentials.kit.stoneslab'
    - 'essentials.kit.mossy'
    - 'essentials.kit.diamond'
    - 'essentials.kit.gold'
    - 'essentials.kit.iron'
    - 'essentials.tp'
    - 'essentials.kit.bed'
    - 'essentials.kit.bow'
    - 'essentials.kit.garden'
    - 'essentials.kit.cactus'
    - 'essentials.kit.boat'
    - 'essentials.kit.minecart'
    - 'war.player'
    - 'skypirates.player.help'
    - 'skypirates.player.air'
    - 'skypirates.player.enable'
    - 'skypirates.items.*'
    AdvBuilder:
    default: false
    info:
    prefix: '&2'
    suffix: '&f'
    build: true
    inheritance:
    - Builder
    permissions:
    - 'essentials.kit.tnt'
    - 'skypirates.modes.hoverboat'
    - 'skypirates.modes.plane'
    - 'skypirates.modes.submarine'
    - 'skypirates.modes.drill'
    - 'skypirates.modes.plane'
    Moderator:
    default: false
    info:
    prefix: '&5'
    suffix: '&f'
    build: true
    inheritance: ''
    permissions:
    - '*'
    - 'essentials.essentials'
    - 'essentials.reloadall'
    - 'essentials.gc'
    - 'essentials.spawnmob'
    - 'essentials.broadcast'
    - 'essentials.antioch'
    - 'essentials.kill'
    - 'essentials.ban'
    - 'essentials.banip'
    - 'essentials.kickall'
    - 'essentials.unban'
    - 'essentials.unbanip'
    - 'essentials.togglejail'
    - 'essentials.jail.exempt'
    - 'essentials.setjail'
    - 'essentials.setspawn'
    - 'skypirates.admin.clear'
    Admin:
    default: false
    info:
    prefix: '&5'
    suffix: '&f'
    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:
    Moronmaster:
    group: Admin
    permissions: ''
    info:
    prefix: '&5The Almighty '
    suffix: '&f'
    robbiemck:
    group: Moderator
    permissions: ''
    info:
    mikote:
    group: Builder
    permissions: ''
    info:
    Gust_swe_ha:
    group: Moderator
    permissions: ''
    info:
    sherman123:
    group: Builder
    permissions: ''
    info:
    Montebello:
    group: Builder
    permissions: ''
    info:
    z3d0m:
    group: Builder
    permissions: ''
    info:
    SweSora:
    group: Builder
    permissions: ''
    info:
     
  29. Offline

    ThePilotGuy

    try this although it's probably wrong just a theory (open)






    Thanks for your help! May I ask what you did to the file to make it work correctly for the future?

    Read last Spoiler in last post. It's glitched to text I put showed a spoiler.

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

    fontaine

    For some reason, I keep getting these errors with Permissions 2.5.4:
    Here is my config:

    Code:
    plugin:
      permissions: {system: default}
    groups:
      Guest:
        default: true
        info: {build: false, prefix: '', suffix: ''}
        permissions: [essentials.rules, essentials.help, essentials.motd, essentials.helpop,
          essentials.list, essentials.mail, essentials.mail.send]
        inheritance: []
      Citizen:
        default: true
        info: {prefix: '&2', suffix: '', build: true}
        permissions: [essentials.list, essentials.mail, essentials.mail.send, essentials.helpop,
          essentials.getpos, essentials.help, essentials.motd, essentials.afk, essentials.rules,
          essentials.msg, essentials.me, essentials.depth, essentials.compass, essentials.whois,
          essentials.spawn, essentials.world, essentials.home, essentials.sethome, lwc.protect,
          iConomy.payment, iConomy.list, iConomy.rank, simpleshop.buy, simpleshop.sell]
        inheritance: []
      Mod:
        default: false
        info: {prefix: '&b', build: true, suffix: ''}
        inheritance: Citizen
        permissions: [essentials.list, essentials.mail, essentials.mail.send, essentials.helpop,
          essentials.getpos, essentials.help, essentials.motd, essentials.afk, essentials.rules,
          essentials.msg, essentials.me, essentials.depth, essentials.compass, essentials.kick,
          essentials.ban, essentials.unban, essentials.banip, essentials.unbanip, essentials.world,
          essentials.modgrp, essentials.spawn, lwc.protect, iConomy.access, iConomy.payment,
          iConomy.list, iConomy.rank, simpleshop.buy, simpleshop.sell]
      Admin:
        default: false
        info: {prefix: '&c', build: true, suffix: ''}
        inheritance: [Mod]
        permissions: ['*']
      Legend:
        default: false
        info: {prefix: '&6', suffix: '', build: true}
        inheritance: [Admin]
        permissions: ['*']

    Any ideas?
     
  31. Offline

    Karinth

    Downside is I used notepad++ for it. No "errors" Nothing comes up red. and yes I know about the Space thing. Thats why I am asking for help
     
Thread Status:
Not open for further replies.

Share This Page