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

    BobKare

    Well, I just don't understand whats wrong here: I downloaded the stable version of 2.7 .4 and felt out the 'users' and 'groups' in the world file, so it is like this:
    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: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*
                - 'mh.*'
        Administrator:
            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:
        BobKare:
            groups:
                -Administrator
            permissions:
        Kristini7:
            groups:
                -Moderator
            permissions:
    
    And I created the folder world with yml-file 'users' and 'groups' in it. Like this:
    users
    Code:
    users:
        BobKare:
            groups:
                -Administrator
            permissions:
        Kristini7:
            groups:
                -Moderator
            permissions:
    
    groups:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*
                - 'mh.*'
        Administrator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    I have all the permissions of the few mods I got so long, but when I log in, I doesn't have more than deafult permissions. Pretty annoying, and if you could help me had that been wonderful! Just ask if I haven't explaind enough.

    Thank you,

    -BobKare
     
  3. Offline

    Ratchet

    i'm having a problem trying to upgrade to 3.0, i've setup the files correctly and there's no errors in the server log, but the permissions just don't work
     
  4. Offline

    Jeyge

    I'm not sure if your first file is the permissions.yml you ran with 2.7.4 or a modified 3.0 file but it wouldn't have worked with either. The 3.0 users probably won't work either. You need a space before each group name and after the -. And the groups file is missing at least 1 closing '. I really can't believe this didn't throw any errors unless you just didn't want to post them.

    As for fixes:
    Code:
    users:
        BobKare:
            groups:
                - Administrator
            permissions:
        Kristini7:
            groups:
                - Moderator
            permissions:
    
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*'
                - 'mh.*'
        Administrator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    These should get you back up and going. I would have tested both of them but I'm still being lazy and haven't set up a 3.0 test environment.
     
  5. Offline

    rcjrrjcr

    For 3.0, I'll probably set up a new thread, since @TheYeti is quite busy with real life at the moment.
     
  6. Offline

    jonathanyan

    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: 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:
        TheNo1Yeti:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
    I can't place any blocks or break any blocks using permissions! I'm definitely far enough from my spawn protection, I named my config file properly, I resetted the config file to the one on the server, but I still can't place any blocks or break them!
    Does anyone have an answer for this?
    Also, it used to work on my server until I installed Buyabilities, pvptime and wrath (which I all removed later on) and it doesn't work now!
    Any help would be greatly appreciated!
     
  7. It would help if you pasted your config file (hidden using a spoilertag or a link to pastebin)
    but.. several people on my server had that problem and what fixed it was renaming their minecraft .bin folder and letting it download fresh. Dunno why but it fixed it so I'm happy.
    If its not that then I'll be happy to help look at it, even look at your server if needed.
     
  8. Offline

    jonathanyan

    Maybe you could post yours?
     
  9. Offline

    Ratchet

    Code:
        Default:         default: true         info:             prefix: ''             suffix: ''             build: false
    
    Code:
                build: false
    Code:
    false
     
  10. Offline

    jonathanyan

    um.... what was that?
     
  11. Offline

    rcjrrjcr

  12. Offline

    Jeyge

    You didn't add yourself to the users section which would make you default to Default and Default doesn't have build permissions.
     
  13. Offline

    BobKare

    Thank you for helping, but when I pasted your codes instead of mine I got this error when starting the server:
    Code:
    14:57:55 [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:172)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:194)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:117)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while parsing a block collection
     in "<reader>", line 78, column 13:
                    - 'colorme.list'
                    ^
    expected <block end>, but found Scalar
     in "<reader>", line 85, column 16:
                    - 'mh.*'
                       ^
            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.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 com.nijiko.configuration.NotNullConfiguration.load(NotNullConfigurati
    on.java:58)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    132)
            ... 13 more
    What does it mean?
     
  14. Offline

    Jeyge

    Those would be the errors you should have got with your files. Are you sure those aren't old erros?
     
  15. Offline

    Maxis010

    A download Link can not be provided, as the previous guy said Apple use their own Java, giving you a Windows or Linux distro is pointless as they aren't cross-platform, that is why you will always see separate downloads for Windows, Mac and Linux
    Thank you Apple for your backwards Java support
     
  16. Offline

    BobKare

    Aaah I fixed it. I forgot to fix the config in 'world'. I only did it in 'groups' and 'users'. The error isn't there anymore, but now I'm back on the old problem again.....
    I have checked all is now like this:
    world:
    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: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*'
                - 'mh.*'
        Administrator:
            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:
        BobKare:
            groups:
                - Administrator
            permissions:
        Kristini7:
            groups:
                - Moderator
            permissions:
    groups:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*'
                - 'mh.*'
        Administrator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
    Code:
    users:
        BobKare:
            groups:
                - Administrator
            permissions:
        Kristini7:
            groups:
                - Moderator
            permissions:
    I'm sorry if I bother you, but I rly would like to know what's wrong. The problem is simply that I can't do anything I should have permissions to do. Like using /mc. I can only use default commands....
     
  17. Offline

    rcjrrjcr

    You seem to be using a 3.0 config with Permissions 2.7.4. This should be the correct config:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mh.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'colorme.list'
                - 'colorme.self'
                - 'plugman.list'
                - 'plugman.describe'
                - 'privatechat'
                - 'magiccarpet.*'
                - 'EasyTP.*'
                - 'mh.*'
        Administrator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        BobKare:
            groups: Administrator
            permissions:
        Kristini7:
            group: Moderator
             permissions:
    
    Save it as plugins/Permissions/<worldname>.yml, where <worldname> is the name of your world. You might want to put it through a YAML parser in case I made a mistake when I copied and pasted from your post.
     
  18. Offline

    xZise

    Is there any official API specification for the Permissions 3.0? So I could prepare updating my plugins for 3.0?

    Fabian
     
  19. Offline

    Taemera

    Use
    groups: Administrator

    instead of
    groups:
    - Administrator
     
  20. Offline

    Fin999888777

    It says: initalizing permissions v3.0 (is it up to date?)

    what is wrong, I have the newest version of permissions
     
  21. Offline

    Jeyge

    I think that would depend on the rest of the error message.
     
  22. Offline

    BobKare

    I still can't get it to work! I just added a '*' under my personal permissions (permissions for BobKare). Then it worked.
    It's like that I'm not a part of the group -.-'
     
  23. Offline

    Jeyge

    First things first then. Which version of Permissions are you running? Second, are you checking for errors? The earlier files you had couldn't have worked with either 2.7.4 or 3.0 and yet you didn't report any errors. At least until you tried my fixed versions and you posted the errors that should have come from the broken version. And finally, are you running the version posted above? If so, it is also broken and should have some errors with it.

    You said earlier that you changed one config file but not another. Are you sure you are modifying the right one?
     
  24. Offline

    nicke937

    Is there plans for a command that moving player to a specific group ec. promote in-game?
     
  25. Offline

    Maxis010

    Permissions 3 has in-game commands
    For permissions 2 you will need permissions plus
     
  26. Offline

    Carlos Fuentes

    I've got a really odd issue. For some reason, permission is causing none of my default users to be able to place blocks. Mods, too. Admins are fine, which leads me to believe it's some loose node I might have left around.

    Here's my permissions 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:
    
        Default:
    
            default: true
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: false
    
            inheritance:
    
            permissions:
    
                - 'foo.bar'
    
                - 'OwnBlocks.use'
    
                - 'OwnBlocks.info'
    
                - 'dc.do'
    
                - 'dc.teleport.self.Flynns'
    
                - 'dc.warp.self'
    
                - 'dc.sethome.self'
    
                - 'dc.home.self'
    
                - 'dc.spawn.self.Flynns'
    
                - 'dc.who'
    
                - 'dc.online'
    
                - 'simplechestlock.lock'
    
                - 'gimme.whitelist'
    
        Moderator:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
                - Default
    
            permissions:
    
                - 'bar.foo'
    
                - 'worldguard.god'
    
                - 'worldguard.heal'
    
                - 'worldguard.heal.other'
    
                - 'worldedit.superpickaxe'
    
                - 'worldedit.tool.tree'
    
                - 'worldedit.drain'
    
                - 'OwnBlocks.ignoreOwnership'
    
        Admins:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance: Moderator
    
            permissions:
    
                - '*'
    
                - 'OwnBlocks.add'
      
    ##
    
    # 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:
    
        Metroidpwner:
    
            group: Default
    
        VTBM:
    
            group: Admins
    
        exploz0r:
    
            group: Admins
    
        tastycake:
    
            group: Moderators
    I, metroidpwner, specified myself as a default user so I could see if everything worked as it should for a default user. Lo and behold, I couldn't place any blocks!

    Here's my list of plugins:

    DefaultCommands
    Gimme
    LoginMessage
    Ownblocks
    Permissions (haha)
    SimpleChestLock
    Worldedit
    Worldguard


    Any help is VERY appreciated!
     
  27. Offline

    Maxis010

    Default group is build false
    Switch to build true
     
  28. Offline

    Carlos Fuentes

    hahaha wooops. thanks a ton :p
     
  29. Offline

    jonathanyan

    Thanks! That helped a lot! But it'd be nice if someone could actually tell me how to give build permissions to default...

    [EDIT] Actually, I set all my friends to moderators and it still doesn't work, I'm the only one who seems to be able to place and remove blocks......
     
  30. Offline

    Jeyge

    Post your current permissions.yml file and your server.log.
     
  31. Offline

    Paarng11b

    Okay so I am having an issue.

    groups:
    Default:
    default: true
    info:
    prefix: 'Default'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'myhome.home.basic.*'
    - 'myhome.home.soc.*'
    - 'commandbook.who'
    - 'commandbook.motd'
    - 'commandbook.rules'
    - 'commandbook.kit.list'
    - 'commandbook.kit.kits.starter'
    - 'commandbook.spawn'
    - 'commandbook.msg'
    - 'commandbook.whereami'
    - 'lockette.user.create.*'
    - 'commandbook.call'
    - 'worldguard.slay'
    Moderator:
    default: false
    info:
    prefix: 'Moderator'
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'commandbook.give'
    - 'commandbook.kit.kits.moderator
    - 'commandbook.teleport'
    - 'commandbook.return'
    - 'commandbook.kick'
    Admins:
    default: false
    info:
    prefix: 'Admin'
    suffix: ''
    build: true
    inheritance:
    - Moderator
    permissions:
    - 'worldguard.heal'
    - 'worldguard.heal.other'
    - 'worldguard.stack'
    - 'worldguard.reload'
    - 'lockette.admin.create.*'
    - 'lockette.admin.bypass'
    - 'commandbook.give.other'
    - 'commandbook.kit.kits.admin'
    - 'commandbook.time'
    - 'commandbook.spawnmob'
    - 'commandbook.teleport.other'
    - 'commandbook.bans.ban'
    - 'commandbook.bans.unban'
    - 'commandbook.bans.isbanned'
    Gods:
    default: false
    info:
    prefix: 'GOD'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    That is how I have everything set up but when I go to start my server I get this....

    146 recipes
    16 achievements
    20:17:07 [INFO] Starting minecraft server version Beta 1.5_02
    20:17:07 [INFO] Loading properties
    20:17:07 [INFO] Starting Minecraft server on 5.246.198.48:25565
    20:17:07 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-751-
    g45fecad-b798jnks (MC: 1.5_02)
    20:17:08 [INFO] Preparing level "Hello"
    20:17:08 [INFO] Preparing start region
    20:17:09 [INFO] Preparing spawn area: 73%
    20:17:09 [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:172)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while parsing a block collection
    in "<reader>", line 91, column 13:
    - 'commandbook.give'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 93, column 16:
    - 'commandbook.teleport'
    ^

    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.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 com.nijiko.configuration.NotNullConfiguration.load(NotNullConfigurati
    on.java:58)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    132)
    ... 13 more
    20:17:09 [INFO] CommandBook 1.5.1-customized enabled.
    20:17:09 [INFO] CommandBook: 0 banned name(s) loaded.
    20:17:09 [INFO] CommandBook: 1 kit(s) loaded.
    20:17:09 [INFO] CommandBook: No known permissions plugin detected. Using configu
    ration file for permissions.
    20:17:09 [INFO] [HELP] 0 extra help entries loaded
    20:17:09 [WARNING] [HELP] A permission plugin isn't loaded.
    20:17:09 [INFO] [HELP] Help 0.2.4.1 enabled
    20:17:09 [INFO] [HeroChat] HeroChat version 4.10.3 enabled.
    20:17:09 [INFO] Lockette version 1.3.8 is being enabled! Yay! (Core version 1.
    0)
    20:17:09 [INFO] Lockette: Detected craftbukkit build [798] ok.
    20:17:09 [INFO] Lockette: Using ops file for admin permissions.
    20:17:09 [INFO] Lockette: Ready to protect your containers.
    20:17:10 [INFO] [MYHOME]: 1 homes loaded
    20:17:10 [WARNING] [MYHOME] A permission plugin isn't loaded.
    20:17:10 [INFO] [MYHOME] 'Help' support enabled.
    20:17:10 [INFO] [MYHOME] MyHome 1.9.5 enabled
    20:17:10 [INFO] OPImmunity v1.0 is enabled!
    20:17:10 [INFO] [OPImmunity] Permissions not found, sticking to OP.
    20:17:10 [INFO] WorldEdit 4.4 enabled.
    20:17:10 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    20:17:10 [INFO] WorldGuard: No known permissions plugin detected. Using configur
    ation file for permissions.
    20:17:10 [INFO] WorldGuard: (Hello) Single session is enforced.
    20:17:10 [INFO] WorldGuard: (Hello) TNT ignition is blocked.
    20:17:10 [INFO] WorldGuard: (Hello) Lighters are blocked.
    20:17:10 [INFO] WorldGuard: (Hello) Lava fire is blocked.
    20:17:10 [INFO] WorldGuard: (Hello) All fire spread is disabled.
    20:17:10 [INFO] WorldGuard: Loaded configuration for world 'Hello"
    20:17:10 [INFO] WorldGuard: 2 regions loaded for 'Hello'
    20:17:10 [INFO] WorldGuard 5.0-alpha10 enabled.
    20:17:10 [INFO] Done (0.253s)! For help, type "help" or "?"
    >


    What am I doing wrong. I downloaded the latest stable file
     
Thread Status:
Not open for further replies.

Share This Page