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

    saturnine_nl

    i was just thinking about to write a decent tutorial of the ins and outs of permissions, but I'm quite hesitant because since i began helping people here I notice one thing. people don't read. So if I'm going to put in all the effort to make it nice and understandable I want to be sure it's not for nothing.

    Please leave a comment if you want me to make a tutorial.

    Greetzzz Saturnine
     
  3. Offline

    Alpha

    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:
                - iConomy.payment
                - iConomy.access
                - iConomy.rank
                - iConomy.list
                - iConomy.admin.grant
                - iConomy.admin.set
                - iConomy.admin.stats
                - iConomy.admin.reset
            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.
    # Alphakid16 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:
        Alphakid16:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
    Is this right? If not can someone help me, I am so confused. :s
     
  4. Offline

    Rietas

  5. Offline

    cjc343

    No. Admins already has '*' so doesn't need additional permissions. Using the edited file above, you should have full power and no one else has any. Add permissions for "everyone" under the "Default" group.

    /modgrp is not a Permissions command. Check out Yeditor.
     
  6. Offline

    Alpha

    So do i delete the stuff under permissions at the top?
     
  7. Offline

    Th3m4ni4c

    Well i used notepad+ can that be why?
     
  8. Offline

    cjc343

    Assuming your ign is Alphakid16, you should use the file I included for now. Deleting the stuff you added under permissions at the top is one of the things I did. I also removed all the fake permission Nodes and fake users.
     
  9. Offline

    Alpha

    Mine don't work so I don't know about it so I think im going to give up
     
  10. Offline

    Prime

    I have Permissions inside my plugins folder, but when I run my server, all the other plugins do not detect it. Any help?
     
  11. Offline

    alexgeek

    Error on version 537:
    Code:
    23:52:22 [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(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:109)
            ... 8 more
    Caused by: java.lang.NullPointerException
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    77)
            ... 13 more
    
     
  12. Offline

    Triggjo2

    FIX THIS PLUGIN i have a player whos name contains a period and permissions doesn't like that so please FIX THIS
     
  13. Offline

    glata

    I am having alot of trouble trying to install permissions, could someone direct me to a youtube video on how to install? Or could someone set it up for me? If so my screen name is "glata" and my ops are "Mothy101" "Hector514" "Neakiaro" Skulk150"
    I would like my ops to be at the same level of authority as me and I am the main guy. Thanks, and heres a picture of my plugins file so that you can see what plugins to install into permissions.

    Thanks a bunch.

    Picture: http://img851.imageshack.us/i/plugins.jpg/
     
  14. Offline

    Triggjo2

    Here you go I put everyone you listed as an admin, aswell as me I hope you don't mind if you want to remove me then just clear my name and the stuff involving me, I gave Default the ability to use the gates in wormhole and thats about it here's the file.
    NOTE you will need to make the file type a .yml instead of .txt it won't let me upload a .yml.
    If you need anymore help just PM me.
     

    Attached Files:

  15. hello plugin developer i download your plugin i install it and geus what happence..

    01:43:15 [INFO] Starting minecraft server version Beta 1.3
    01:43:15 [INFO] Loading properties
    01:43:15 [INFO] Starting Minecraft server on 192.168.1.11:25565
    01:43:15 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-537-
    gd43fb04-b548jnks (MC: 1.3)
    01:43:15 [INFO] Preparing level "world"
    01:43:15 [INFO] Preparing start region
    01:43:16 [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(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:109)
    ... 8 more
    Caused by: while scanning an alias
    in "<reader>", line 88, column 16:
    - '*'
    ^
    expected alphabetic or numeric character, but found but found '
    in "<reader>", line 88, column 17:
    - '*'
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:11
    56)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:78
    2)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:313)
    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.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
    01:43:16 [INFO] [AutoSave] Version 1.1.1 is enabled!
    01:43:16 [INFO] [AutoSave] Loading config file
    01:43:16 [INFO] [AutoSave] AutoSaveThread Started: Interval is 300 seconds
    01:43:16 [INFO] ChatBukkit v0.0.1 is enabled!
    01:43:16 [INFO] ScrapBukkit version 0.2.1 is enabled!
    01:43:16 [INFO] CraftBukkitUpToDate version 2.1 is enabled!
    01:43:16 [INFO] CButD: Permission system not detected, defaulting to OP
    01:43:16 [INFO] CButD: CraftBukkit is up to Date
    01:43:16 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    01:43:16 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    01:43:16 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    01:43:16 [INFO] Activated world 'world' in Dynmap.
    01:43:16 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    01:43:16 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    01:43:16 [INFO] Dynmap WebServer started on null:8123
    01:43:16 [INFO] [FalseBook Block] ERROR: No Plugin found to handle Permissions!
    01:43:16 [INFO] [FalseBook Block] FalseBookLift will be disabled!
    01:43:16 [INFO] [FalseBook Cart] Settings successfully loaded.
    01:43:16 [INFO] [FalseBook Cart] ERROR: No Plugin found to handle Permissions!
    01:43:16 [INFO] [FalseBook Cart] FalseBook Cart 0.60alpha by GeMo will be disabl
    ed!
    01:43:16 [INFO] [FalseBook Extra] ERROR: No Plugin found to handle Permissions!
    01:43:16 [INFO] [FalseBook Extra] FalseBook Extra 0.60alpha by GeMo will be disa
    bled!
    01:43:16 [INFO] [FalseBook IC] ERROR: No Plugin found to handle Permissions!
    01:43:16 [INFO] [FalseBook IC] FalseBook IC 0.60alpha by GeMo will be disabled!
    01:43:16 [WARNING] Permissions 2.5.1 or higher not found! Please update Permissi
    ons. Disabling HeroChat.
    01:43:16 [INFO] [HeroChat] HeroChat version 4.4.2 disabled.
    01:43:16 [INFO] InfChests: Loading Configuration...
    01:43:16 [INFO] InfChests: Count: 1
    01:43:16 [INFO] InfChests: Loading Configuration Succes...
    01:43:16 [INFO] InfChests: Configuration Loaded!
    01:43:16 [INFO] InfChests: Allowed Worlds:
    01:43:16 [INFO] InfChests: world
    01:43:16 [INFO] InfChests: Registering Events...
    01:43:16 [INFO] InfChests version 0.3.6.1 is enabled!
    01:43:16 [INFO] Lockette version 1.2.2 is being enabled! Yay!
    01:43:16 [INFO] Lockette: Detected craftbukkit jenkins build [548] ok.
    01:43:16 [INFO] Lockette: Nijikokun's Permissions plugin not detected, using ops
    file.
    01:43:16 [INFO] Lockette: Ready to protect your containers.
    01:43:16 [INFO] WorldEdit 4.1 enabled.
    01:43:16 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    01:43:16 [INFO] Done (0.142s)! For help, type "help" or "?"
    01:43:26 [INFO] CButD: Plugin-Update-Check started
    01:43:28 [INFO] No source for dynmap.jar ask the Author to give me one
    01:43:28 [INFO] No source for FalseBookBlock.jar ask the Author to give me one
    01:43:28 [INFO] No source for FalseBookCart.jar ask the Author to give me one
    01:43:28 [INFO] No source for FalseBookExtra.jar ask the Author to give me one
    01:43:28 [INFO] No source for FalseBookIC.jar ask the Author to give me one
    01:43:28 [INFO] No source for InfChests.jar ask the Author to give me one
    01:43:28 [INFO] No source for Lockette.jar ask the Author to give me one
    01:43:29 [INFO] No source for WorldEdit.jar ask the Author to give me one
    01:43:29 [INFO] CButD: Plugin-Update-Check finished
    >

    i'm not a real smart guy but that can't be good :S
     
  16. Offline

    saturnine_nl

    it's not too bad either ;) ... there are some typo's in your permission.yml file

    Caused by: while scanning an alias
    in "<reader>", line 88, column 16:
    - '*'
    ^
    expected alphabetic or numeric character, but found but found '
    in "<reader>", line 88, column 17:
    - '*'
    ^

    though havent seen this one yet.
    could you pastebin ( http://www.pastebin.com ) your permissions.yml file and post the link here
    i'll have a look :) ...
     
  17. Offline

    saturnine_nl

    all i can see what's wrong is a missing ' at the end of this line prefix: '[&4owner&4]
    If you fix that line it should be alright.
     
  18. but you won't find anything because i already tried with the default permissions and it doesn;t work
    [MERGETIME="1299978851"][/MERGETIME]
    i need help from the maker :S
     
  19. Offline

    Superhykle

    Hey,
    The antibuild is bugging on my, sometimes ppl cant build but they can use the commands I gave them, anyone know whats up?
     
  20. Offline

    glata

    Thanks, I installed in correctly with no error message, but for some reason when I try to use plugin commands its says "you don't have permission to do that"
    I did check if my name was correct where you put it in and it was correct so... Help?
     
  21. Offline

    Triggjo2

    Try this (note I did this on my ipod so it might not load but try it):
    EDIT:it wont work unless you fix the spaces so just look at the dirffence and edit as needed

    # 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: '&9'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'foo.bar'
    - 'wormhole.use'
    Moderator:
    default: false
    info:
    prefix: '&5'
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: '&4'
    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:
    triggjo2:
    group: Admins
    permissions:
    glata:
    group: Admins
    permissions:
    Mothy101:
    group: Admins
    permissions
    Hector514:
    group: Admins
    permissions:
    Neakiaro:
    group: Admins
    permissions:
    Skulk150:
    group: Admins
    permissions:
     
  22. Offline

    Malkierian

    Did you make sure to rename the file to (whatever your world's name is).yml?

    If it is, is your host loading your world from the root directory, or from some other directory?

    Use v2.5.3 instead. 2.5.4 would almost always (95%+ of the time) fail with that exact message. 2.5.3 works perfectly.
     
  23. Offline

    glata

    Thanks, but I realised that I actually deleted some of the stuff you wrote but its all good now, but I see you made it so that I could make people guests but I had to manually put them on the list. So how can I make it so that when someone joins and I havn't made a trusted player they can only use the wormhole and thats it, they can also not break blocks or place blocks and it automatically makes them a guest if they are not yet a trusted play.

    Make sense?
     
  24. Offline

    d3x

    How about:
    Code:
        public static PermissionHandler perms;
    ...
        public boolean hasPermission(Player p, String n) {
            Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
            if (perms == null && test != null) {
                perms = ((Permissions) test).getHandler();
            }
            if ( (perms != null && perms.has(p, n)) || p.isOp()) {
                return true;
            }
            return false;
        }
     
  25. Offline

    l0stb3ta

    Hey all! I'm having a bit of a problem getting permissions to work on a server. I moved my server config up from my private server, and permissions went all buggy. I think it's because the server world is being loaded from a directory somedirectory/nameofworld ... and I can't change that. At least, I don't think I can... I'll have to double check that, but I'm pretty sure I can't, since this host standardizes stuff like that.

    Filenames can't contain the "/" character.

    I tried putting a directory named somedirectory in the Permissions folder, and putting the nameofworld.yml in that, but Permissions still will not load the file.

    What am I doing wrong? Hopefully it's an easy fix. =x
     
  26. Offline

    saturnine_nl

    just make a subfolder inside permissions with the same structure as the server has
    aka worlds on the server are found in ../bukkitroot/bukkitworlds/world1

    then permissions.yml has to go in ../plugins/permissions/bukkitworlds/world1.yml
     
  27. Works perfectly under 2.5.1 but whenever I try updating 2.5.2+ I get this weird error from most of my plugins that uses Permissions.
    Code:
    11:13:59 [INFO] [Permissions] version [2.5.2] (Phoenix) was Initialized.
    11:13:59 [INFO] [AfkBooter] Permissions detected, attaching.
    11:13:59 [INFO] [AfkBooter] Version 0.6 is loaded.
    11:13:59 [INFO] [AfkBooter] Kick timeout 360 sec, exempt players: Player, Hybris, Tester
    11:13:59 [INFO] [Permissions] version [2.5.2] (Phoenix)  loaded
    11:13:59 [INFO] Could not determine Permissions version: 2.5.2
    11:13:59 [INFO] [iChat] Permissions plugins not found, disabling plugin
    11:13:59 [INFO] [iChat] iChat Disabled
    11:13:59 [INFO] [iConomy] Logging is currently disabled.
    11:14:00 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    11:14:00 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    11:14:00 [GRAVE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 13 more
    11:14:00 [GRAVE] com/nijikokun/bukkit/Permissions/Permissions loading MultiChannel v1.0 (Is it up to
     date?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.hybris.bukkit.multichannel.MultiChannel.loadPermissions(MultiChannel.java:55)
            at com.hybris.bukkit.multichannel.MultiChannel.onEnable(MultiChannel.java:42)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 12 more
    11:14:00 [GRAVE] com/nijikokun/bukkit/Permissions/Permissions loading MultiVerse v1.4 (Permissions 2
    .1) (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.onarandombox.Rigby.MultiVerse.MultiVerse.checkPermissions(MultiVerse.java:553)
            at com.onarandombox.Rigby.MultiVerse.MultiVerse.onEnable(MultiVerse.java:104)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 12 more
    11:14:00 [INFO] [PlugMan] Starting Up! - Version: 1.2.1 by bekvon
    11:14:00 [GRAVE] com/nijikokun/bukkit/Permissions/Permissions loading PlugMan v1.2.1 (Is it up to da
    te?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.bekvon.bukkit.plugman.PlugMan.checkPermissions(PlugMan.java:154)
            at com.bekvon.bukkit.plugman.PlugMan.onEnable(PlugMan.java:65)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 12 more
    11:14:00 [GRAVE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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)
    11:14:00 [INFO] WorldEdit 4.0-beta7 enabled.
    11:14:00 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permis
    sions.
    11:14:00 [GRAVE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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)
    11:14:00 [INFO] WorldGuard: No known permissions plugin detected. Using configuration file for permi
    ssions.
    11:14:00 [INFO] WorldGuard: Blacklist loaded.
    11:14:00 [INFO] WorldGuard 4.0-alpha1 enabled.
    11:14:00 [GRAVE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            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)
    Most of my plugins are up to date, and some are even wrote by me.
    Using bukkit 531.
    And Java :
    Code:
    C:\Users\Hybris95>java -version
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    
     
  28. Offline

    saturnine_nl

    @Hybris95: At the look of it seems like IChat doesn't see or check properly for perm 2.5.2
    Is there a need to use 2.5.2+ other then that the plugins go nagging that they can't work with 2.5.2+ ?

    Could you pastebin ( http://www.pastebin.com ) your permissions.yml ?
     
  29. That can't be coming from the config file. As you see, the plugins try to find com.nijikokun.bukkit.Permissions.Permissions class, seems like Permissions plugin unload itself from the ClassLoader or something like that, cause as you see AfkBooter loads it successfully because it is enabling itself while Permissions hasn't finished enabling too.

    Well anyway, I'm pretty sure this is a bug of Permissions or comes from the 64bit version of Java (which I doubt seriously).

    EDIT :

    http://pastebin.com/P1gDYBkB if needed...
     
  30. Offline

    4Soldier93

    How does Multiworld work??

    I created a new world with"EpicGates v0.3".

    Primary World: Test
    Second World: TESTL

    i have copy the "Test.yml" file in the directory "Plugins/Permissions" and renamed it to "TESTL.yml".
    Then i changed the settings in the "TESTL"-File.

    But when I switch the world from primary to my second world, i have the same permissions :/ (i switch between the worlds with the Plugin "EpicGates v0.3 ("/world visit TESTL"))

    What is my mistake?
     
Thread Status:
Not open for further replies.

Share This Page