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

    Tickety86

    I have this error and i have no idea how to fix it

    Code:
    18:23:57 [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:105)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:158)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:106)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    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:101)
            ... 8 more
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 3070
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:68)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
            at org.yaml.snakeyaml.reader.StreamReader.prefix(StreamReader.java:130)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanLineBreak(ScannerImpl.java
    :1752)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.ja
    va:977)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:237)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:592)
            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.composeNode(Composer.java:132)
            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:
    126)
            ... 13 more
    This is 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.
    #  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: Visitor
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:
    - 'mcmmo.motd'
    Default:
    default: true
    info: No Player
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'mcmmo.motd'
    - 'mcmmo.regeneration'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.commands.*'
    - 'mcmmo.skills.*'
    - 'herobounty.*'
    - 'iConomy.payment'
    - 'iConomy.access'
    - 'iConomy.rank'
    - 'iConomy.list'
    - 'MobBounty.mb'
    - 'wolfpound.use'
    Villager:
    default: true
    info: Normal Player
    prefix: '§7Villager'
    suffix: ''
    build: true
    inheritance:
    - 'Default'
    permissions:
    - 'mcmmo.skills.mining'
    - 'mcmmo.skills.woodcutting'
    - 'mcmmo.skills.unarmed'
    - 'mcmmo.skills.archery'
    - 'mcmmo.skills.herbalism'
    - 'mcmmo.skills.excavation'
    - 'mcmmo.skills.swords'
    - 'mcmmo.skills.axes'
    Elite:
    default: true
    info: Trusted Player
    prefix: '§eElite'
    suffix: ''
    build: true
    inheritance:
    - 'Default'
    - 'Villager'
    permissions:
    - 'mcmmo.skills.repair'
    - 'signColours.*'
    Ninja:
    default: false
    info: Moderator
    prefix: '§0Ninja'
    suffix: ''
    build: true
    inheritance:
    - 'Default'
    - 'Elite'
    permissions:
    - 'mcmmo.item.chimaerawing'
    - 'mcmmo.chat.adminchat'
    - 'mcmmo.tools.mcgod'
    - 'mcmmo.skills.acrobatics'
    Lord:
    default: false
    info: Admin
    prefix: '§6Lord'
    suffix: ''
    build: true
    inheritance:
    - 'Default'
    - 'Ninja'
    permissions:
    - 'mcmmo.tools.*'
    - 'iConomy.admin.*'
    - 'MobBounty.*'
    - 'wolfpound.create'
    Demigod:
    default: false
    info: Owner
    prefix '§4Demigod'
    suffix ''
    build: true
    inheritance:
    - 'Default'
    - 'Lord'
    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:
    Tickety86:
    group: Demigod
    permissions:
    Orik302:
    group: Elite
    permissions:
    - 'mcmmo.skills.acrobatics'
     
  3. Offline

    Kalli749

    How can i assign prefixes or suffixes to usergroups?

    Admins:
    default: false
    info:
    prefix: 'Admin' <----------- right?
    suffix: ''
    build: true
    inheritance: permissions:



    If yes it doesnt work..
     
  4. Offline

    Psycho

    Does it work whit 1.4 (Sorry for my English)
     
  5. Offline

    lexingtonrex

    What chat mod are you using? I used to use Ichat and this happened with everything, My name was Admins Admin Lexingtonrex. The problem was that Ichat looks for the group name before the other names and for what ever reason can't pass your information through the way you want it. I switched to HeroChat and its a lot better. It will not use the group name and I do believe it will put the USA at the end of your name (I have never tried this yet) I did try, It worked :) also, prefix would be: prefix: '&4Owners&4'
    unless you want your whole name red.

    That's correct, Do you have a chat plugin such as Ichat or Herochat (I recommend this).

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

    I've got a problem with the permissions plugin, since i moved to a new root-server.

    RAM, CPU and OS changed (from 32bit to 64bit).

    I moved the whole, working Minecraft-Server to the same directory on the new one. But on starting, it causes many errors. So i tried to figure out, what plugin is causing the error. What i found out is, that only the whitelist plugin is running, so i made a new folder and downloaded everything new (minecraft, craftbukkit, plugins) and looked that the version numbers match.

    So i defently have the right craftbukkit version and permission 2.5.5. (tried another craftbukkit version which should work, and the one used at the older server) But this error appears in the console.

    Code:
    2011-04-04 21:10:09 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
        ... 8 more
    I renamed the config file to my mapname and added me as an admin. Nothing changed. I also tried the config file from the working server, but it didn't change a thing.

    So i hope you can help me. If you need more information, ask me.

    Sorry for my english :)

    eXi
     
  7. Offline

    bejay

    hey, nice plugin.. but i'm having troubles. My friends cannot spawn items or use other plug-ins i've added, and i'm 100% sure i've done it right. heres my config:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'foo.bar'
                -'sprint.allow'
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
                - 'supplysign.access'
                - 'gimme.gimme'
                - 'gimme.whitelist'
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'superpowers.use'
                - 'supplysign.create'
                - 'supplysign.destroy'
                - 'supplysign.reload'
    
    ##
    # 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:
        mcflavour:
            group: Admins
            permissions:
              - '*'
        dss7596:
            group: Moderator
            permissions:
                - 'supplysign.access'
                - 'gimme.gimme'
                - 'gimme.whitelist'
        pvppwnage:
            group: Moderator
            permissions:
                - 'supplysign.access'
                - 'gimme.gimme'
                - 'gimme.whitelist'
        ibeurmum8d:
            group: Moderator
            permissions:
                - 'supplysign.access'
                - 'gimme.gimme'
                - 'gimme.whitelist'
        elvenbrent:
            group: Moderator
            permissions:
                - 'supplysign.access'
                - 'gimme.gimme'
                - 'gimme.whitelist'
    
    
     
  8. Offline

    karlmagnus

    hey , i have a question , at other mods it says support permissions then it says a code "expamle.example" but ehh , where to place that code ? (i know a nooby question)
     
  9. Offline

    skacikpl

    I'm having exactly same issues.
    Also tried it on clean install, nothing works.
     
  10. Offline

    Dark Nero

    Can anyone help me please?
    I am having the same trouble as most here.

    I am using the up to date iChat and Premissions for Craftbukkit 1.4
    But my problem is my server will not show names correctly anymore.
    It just shows up as

    <Nero> Text Here

    What should I do to revert back to

    [Admin] Nero: My Text Here

    Should I be using another Plugin?

    Text demo

     
  11. Offline

    skinnyhaych

    Please help me D:
    Ok so I bought a server and I manage the files using a control panel. (This one is called TCAdmin)
    Now I have changed the config file to world.yml and I know the config is correct as I've even used other peoples working configs. I have added myself to users yet when I log on my set prefix isn't there. It should say [Admin]skinnyhaz but instead just skinnyhaz :(
    I get no error message, no nothing. It's like permissions isn't there :(
     
  12. Offline

    Cr@zy

    I must replace + by nothing?
    And for indents there is 4 spaces by cat.

    Note: ops.txt is blank (and must be i think...)
     
  13. Offline

    Celtic Minstrel

    Upgrade to Permissions 2.5.5.

    It matters not what's in ops.txt. Typically, people listed in ops.txt just get all permissions automatically, though it depends on the plugin.


    Permissions doesn't do anything with the prefix; it just puts it there for other plugins to see. Try iChat.
     
  14. Offline

    Cr@zy

    Ok, so what is wrong with my Permissions config?
    I type /give 278 and i have no permission and i am in the admin group with perm '*'

    http://pastebin.com/jxFHKwUz
     
  15. Offline

    Tropico

    I'm getting this from Permissions every time I start the server:

    Otherwise everything *seems* to be fine so far. The world config file is actually fine and the permissions *seem* to work as they should.

    Any idea what that might be?
     
  16. Hey guys.

    I've got a problem with the permissions plugin, since i moved to a new root-server.

    RAM, CPU and OS changed (from 32bit to 64bit).

    I moved the whole, working Minecraft-Server to the same directory on the new one. But on starting, it causes many errors. So i tried to figure out, what plugin is causing the error. What i found out is, that only the whitelist plugin is running, so i made a new folder and downloaded everything new (minecraft, craftbukkit, plugins) and looked that the version numbers match.

    So i defently have the right craftbukkit version and permission 2.5.5. (tried another craftbukkit version which should work, and the one used at the older server) But this error appears in the console.

    Code:
    2011-04-04 21:10:09 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
        ... 8 more
    I renamed the config file to my mapname and added me as an admin. Nothing changed. I also tried the config file from the working server, but it didn't change a thing.

    So i hope you can help me. If you need more information, ask me.

    Sorry for my english :)

    eXi
     
  17. Offline

    QcChopper

    I am new to this but I have craftbukkit working perfectly but I can't get the Permissions plugin to work.

    Minecraft 1.4
    craftbukkit 612
    Permissions 255

    I extracted the content of the permissions zip archive in the CB plugins folder, I renamed the .yml file to world.yml(which is the name of my newly created testing map) and I always get this error:

    14:02:57 [INFO] Invalid config file found and converted to proper name/format.

    I only renamed the .yml file, I haven't edited it yet.

    I have looked all over the web and can find people with the same problem but no solution whatsoever so help would be apreciated.
     
  18. Offline

    Hoddie54

    Code:
    011-04-05 14:20:01 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroups(Control.java:652)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
    at org.bukkit.plugin.java.JavaPluginLoader$22.execute(JavaPluginLoader.java:297)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
    at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
    at net.minecraft.server.ItemStack.a(ItemStack.java:56)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    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: 'Player'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.sethome'
                - 'essentials.home'
                - 'mcmmo.skills.*'
                - 'mcmmo.ability.*'
                - 'mcmmo.commands.party'
        Moderator:
            default: false
            info:
                prefix: '&bModerator'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.kick'
                - 'essentials.ban'
        Admins:
            default: false
            info:
                prefix: '&4Admin'
                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:
        Torgash:
            group: Admins
            permissions:
        Andrew_Baker:
            group: Admins
            permissions:
        jas129:
            group: Moderator
            permissions:
        _matthew_:
            group: Moderator
            permissions:
        Wormchill:
            group: Moderator
            permissions:
    b617
     
  19. Offline

    bobddk

    What did i do wrong


    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&f[Guest]&f'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'BetterShop.user.*'
                - 'essentials.help'
                - 'essentials.home'
                - 'essentials.motd'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'commandSigns.use'
                - 'bandages.use'
        Moderator:
            default: false
            info:
                prefix: '[&9 Mod&f]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'BetterShop.user.*'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'essentials.give'
                - 'commandSigns.use'
                - 'falsebook.anyic'
                - 'falsebook.ic.xxx'
                - 'BetterShop.admin.*'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.bridge'
                - 'falsebook.blocks.door'
                - 'falsebook.blocks.gate'
                - 'falsebook.blocks.lift'
                - 'falsebook.blocks.hiddenswitch.create'
                - 'falsebook.blocks.hiddenswitch'
                - 'falsebook.blocks.area'
                - 'falsebook.ic.standard'
                - 'falsebook.ic.detection'
                - 'falsebook.ic.worldedit'
                - 'falsebook.ic.selftriggered'
                - 'blockhead.hat'
                - 'JumpBlock.State'
                - 'JumpBlock.Invincibility'
                - 'JumpBlock.Use'
                - 'JumpBlock.MaxHeight'
                - 'JumpBlock.Create'
                - 'blockhead.hat.items'
                - 'blockhead.hat.give.players.items'
                - 'blockhead.hat.give.groups.items'
                - 'commandSigns.super'
                - 'commandSigns.create'
                - 'bandages.use'
        Admins:
            default: false
            info:
                prefix: '[&4Owner&f]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
        Builder:
            default: false
            info:
                prefix: '[&2Builder&f]'
                suffix: ''
                build: true
            permissions:
                - 'BetterShop.user.*'
                - 'essentials.help'
                - 'essentials.home'
                - 'essentials.motd'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'commandSigns.use'
                - 'bandages.use'
        SemiAdmin:
            default: false
            info:
                prefix: '[&cSemiAdmin&f]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'JumpBlock.State'
                - 'JumpBlock.Invincibility'
                - 'JumpBlock.Use'
                - 'JumpBlock.MaxHeight'
                - 'JumpBlock.Create'
                - 'essentials.give'
                - 'commandSigns.use'
                - 'falsebook.anyic'
                - 'falsebook.ic.xxx'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.bridge'
                - 'falsebook.blocks.door'
                - 'falsebook.blocks.gate'
                - 'falsebook.blocks.lift'
                - 'falsebook.blocks.hiddenswitch.create'
                - 'falsebook.blocks.hiddenswitch'
                - 'falsebook.blocks.area'
                - 'falsebook.ic.standard'
                - 'falsebook.ic.detection'
                - 'falsebook.ic.worldedit'
                - 'falsebook.ic.selftriggered'
                - 'blockhead.hat'
                - 'blockhead.hat.items'
                - 'blockhead.hat.give.players.items'
                - 'blockhead.hat.give.groups.items'
                - 'BetterShop.user.*'
                - 'commandSigns.super'
                - 'commandSigns.create'
                - 'bandages.use'
                - 'BetterShop.admin.*'
                - '*'
    
    users:
    
        # faggots is in the Admin group
         bobddk:
            group: Admins
         Jubor:
            group: Admins
    
         Izzat123:
            group: SemiAdmin
         tobias1222:
            group: Builder
            Permission:
                 - essentials.item
         WilliamHN:
            group: Builder
            Permission:
    
     
  20. Offline

    skacikpl

    I can already tell that prefixes won't look as you want them to, but still it wouldn't break anything

    permissions seem to be broken now.
     
  21. Offline

    TheYeti

    @skacikpl Do not be denouncing something as broken without proof. Permissions is working perfectly fine except for one small bug.
     
  22. Offline

    skacikpl

    i am sorry, i'll rephrase my sentence

    Permissions seem to be broken for a certain group of people

    and nobody really knows the reason why it doesn't want to work in those cases.
    If you'd be so kind and give me link to exact build which is confirmed working.
     
  23. Offline

    TheYeti

    @skacikpl I am using 2.5.5 on my own server. I have at least 20-25 people on at all times and a good 150-200 come through per day. Controls the permissions for everyone across five different worlds without breaking, and only two of those worlds have a config file.
     
  24. Offline

    skacikpl

    well, maybe this will give you some idea about what is wrong
    Code:
    2011-04-04 21:10:09 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
    ... 8 more
     
  25. Offline

    bobddk

    Hmm whats wrong with my code so people dont get permission to do stuff:s
     
  26. Offline

    skacikpl

    either permissions are broken for you like for me and few other people or you simply used tab instead of spaces
     
  27. Offline

    drakhri

    One problem is your mod group inherits default and therefore has the perm 'BetterShop.user.*' twice.

    - 'falsebook.blocks.*' - 'falsebook.blocks.bridge' - 'falsebook.blocks.door' - 'falsebook.blocks.gate' - 'falsebook.blocks.lift' - 'falsebook.blocks.hiddenswitch.create' - 'falsebook.blocks.hiddenswitch' - 'falsebook.blocks.area'

    Again is all redundant, the falsebook.blocks.* takes care of anything in falsebook.blocks

    Under semi admin, you have a bunch of permissions then a * perm. You only need a * which would make it identical to admin.
    Semi admin is otherwise identical to moderator.

    Builder perms are identical to default.

    Should remove prefixes (to remove potential problem) and then try this:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&f[Guest]&f'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'BetterShop.user.*'
                - 'essentials.help'
                - 'essentials.home'
                - 'essentials.motd'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'commandSigns.use'
                - 'bandages.use'
        Moderator:
            default: false
            info:
                prefix: '[&9 Mod&f]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'essentials.give'
                - 'falsebook.anyic'
                - 'BetterShop.admin.*'
                - 'falsebook.ic.xxx'
                - 'falsebook.blocks.*'
                - 'falsebook.ic.standard'
                - 'falsebook.ic.detection'
                - 'falsebook.ic.worldedit'
                - 'falsebook.ic.selftriggered'
                - 'blockhead.hat'
                - 'JumpBlock.State'
                - 'JumpBlock.Invincibility'
                - 'JumpBlock.Use'
                - 'JumpBlock.MaxHeight'
                - 'JumpBlock.Create'
                - 'blockhead.hat.items'
                - 'blockhead.hat.give.players.items'
                - 'blockhead.hat.give.groups.items'
                - 'commandSigns.super'
                - 'commandSigns.create'
        Admins:
            default: false
            info:
                prefix: '[&4Owner&f]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
        Builder:
            default: false
            info:
                prefix: '[&2Builder&f]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        SemiAdmin:
            default: false
            info:
                prefix: '[&cSemiAdmin&f]'
                suffix: ''
                build: true
            inheritance:
                - Moderator
            permissions:
    
    
    users:
    
        # faggots is in the Admin group
         bobddk:
            group: Admins
         Jubor:
            group: Admins
    
         Izzat123:
            group: SemiAdmin
         tobias1222:
            group: Builder
            Permission:
                 - essentials.item
         WilliamHN:
            group: Builder
            Permission:
    To see if you have tabs i suggest you get notepad++ (fantastic text editor).
    Ctrl-h to search + replace.
    Set the fields as follows:
    Find what: \t
    Replace with: (4 spaces)
    Then hit replace all
     
  28. Offline

    clash

    I'll second that. Been working fine on my server for quite some time.

    BTW, Great work, Yeti! Hope your shoulder is better. :)

    Now for a question/suggestion: I would love to see an option that would log warnings (or whatever) when someone tries to use a command that they do not have permission to use. I can put messages in my plugin to do so, but I'd like it to be global for all plugins that use Permissions. Just a thought. Take care.
     
  29. Offline

    skacikpl

    if it works for you, then i'm glad, but please help me
    Code:
    2011-04-04 21:10:09 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
    
    Minecraft server 1.4, CB 617
    EDIT:
    @TheYeti
    you should propably add with big red letters that adding permissions of an unexisting/outdated/broken plugin might break the permissions plugin.
     
  30. Offline

    virtualism

    One of the earlier dudes who had the issue with a seemingly perfected configured permissions that just wouldn't work. I fixed it by starting my server again from scratch. Well, we're back to that stage now. CB 612 (trying to update, but the server is down at time of typing).

    After a server restart (i moved h2.jar to a different directory to see if it would help with a severe error, which it did) i had the same issue again - nothing in the world.yml was applied. Otherwise, nothing was changed to the server, so this made 0 sense to me. I tried chmodding again, tried putting the permissions in a permissionsworld.yml file that had randomly appeared, everything i did before. permissions -reload all gives the info thing (again, same thing as before). tried completely removing permissions and using the default yml, same stuff. Basically, the only thing i can think of is to delete the whole damn thing again, something i am not looking forward to after being awake for 3 days straight (not related to minecraft).

    I'm seeing more people now with this "it doesn't work" issue. Will let you know if i figure something out.

    EDIT:
    I copied all plugins except permissions and rkitplugin out of the minecraft directory. It's still not reading from the world.yml, but my name is no longer yellow and i can do this:
    Code:
    permissions -reload all
    17:26:04 [INFO] All world files reloaded.
    17:26:08 [INFO] <virtualism> testan
    
    Interesting, at least.
     
  31. Offline

    jin hong ji

    make for you have 12 spaces for your plugins; If you have one more or one less the permission wont work.
     
Thread Status:
Not open for further replies.

Share This Page