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

    Dark Nero

    Ok I got it working!!!!!!!!!!!! 4 days of pain over at last.
    What I did was if anyone here is having same problem with the
    <User> Text here
    Now its back to
    [Admin] Nero My text here
    1. Delete iChat and Permissions.
    2. Download nChat.jar and Permissions.jar
    3. Copy paste back into plugin folder
    4. Add in your world.yml
    5. Hope xD
     
  3. Offline

    Mattie112

    Are you planning on intergrating (my)sql support? That would be fantastic!
     
  4. Offline

    DteXadas

    I got a problem with permissions for the worldedit plugin by sk89q.
    so, I use bukkit build 617 on my server and everything seems to be ok, but my problem is that every user and every group is able to use the worldedit command, also if they do not have the permissions.
    - '*'
    - '-superpowers.use'
    - '-worldedit.*'
    - '-permissions.reload'
    these are the permissions I gave the moderators, but they still can use all worldedit commands ingame. however, also the default group who does not even have the permission to build can use them.
    The worldedit logfile also says this: [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions. but it seems that it does not use the permissions plugin.
    Greets
     
  5. Offline

    Scott

    - 'command'

    Not - '-command'

    Also, - '*' Gives all permissions and should not have other permissions included in that group and should not inherit any other groups either.
     
  6. Offline

    Frisoso

    Thanks for the help, but I'm still getting those awfull error. Here is the config I'm using after listening to your tips:
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        'Default':
            default: true
            info:
                prefix: null
                suffix: null
                build: true
            inheritance: null
            permissions:
            - 'essentials.spawn'
            - 'essentials.help'
            - 'essentials.depth'
            - 'essentials.getpos'
            - 'essentials.compass'
            - 'essentials.home'
            - 'essentials.sethome'
            - 'essentials.msg'
            - 'essentials.afk'
            - 'essentials.rules'
            - 'essentials.motd'
            - 'essentials.me'
            - 'essentials.list'
            - 'essentials.mail'
            - 'essentials.helpop'
            - 'essentials.whois'
            - 'essentials.ping'
            - 'essentials.suicide'
            - 'essentials.mail.read'
            - 'BetterShop.user.*'
            - 'jail.modifyjail'
            - 'jail.command.jailcheck'
            - 'BetterShop.user.*'
            - 'towny.town.claim'
            - 'essentials.kit.starter'
            - 'essentials.kit'
            - 'lwc.protect'
            - 'mcmmo.commands.ability'
            - 'mcmmo.commands.party'
            - 'mcmmo.commands.whois'
            - 'mcmmo.skills.*'
            - 'iConomy.payment'
            - 'iConomy.rank'
            - 'iConomy.access'
            - 'iConomy.list'
            - 'nethrar.use'
        'Tier-1':
            default: false
            info:
                prefix: '&e'
                suffix: null
                build: true
            inheritance:
            - Default
            permissions:
            - 'essentials.kit.tier1'
        'Tier-2':
            default: false
            info:
                prefix: '&8'
                suffix: null
                build: true
            inheritance:
            - Tier-1
            permissions:
            - 'essentials.kit.tier2'
        'Tier-3':
            default: false
            info:
                prefix: '&6'
                suffix: null
                build: true
            inheritance:
            - Tier-2
            permissions:
            - 'essentials.kit.tier3'
        'Tier-4':
            default: false
            info:
                prefix: '&b'
                suffix: null
                build: true
            inheritance:
            - Tier-3
            permissions:
            - 'essentials.kit.tier4'
        'Tier-5':
            default: false
            info:
                prefix: '&5'
                suffix: null
                build: true
            inheritance:
            - Tier-4
            permissions:
            - 'essentials.kit.tier5'
        'Tier-6':
            default: false
            info:
                prefix: '&c'
                suffix: null
                build: true
            inheritance:
            - Tier-5
            permissions:
            - 'essentials.kit.tier6'
        'Uber-Tier':
            default: false
            info:
                prefix: '&6[Über] '
                suffix: null
                build: true
            inheritance:
            - Tier-6
            permissions:
            - 'essentials.item'
            - 'essentials.tp'
            - 'essentials.tphere'
        'Moderator':
            default: false
            info:
                prefix: '&1'
                suffix: null
                build: true
            inheritance:
            - Uber-Tier
            permissions:
            - 'essentials.teleport.cooldown.bypass'
            - 'essentials.teleport.timer.bypass'
            - 'essentials.tpo'
            - 'essentials.tp'
            - 'essentials.tphere'
            - 'essentials.tpohere'
            - 'essentials.tppos'
            - 'essentials.ban'
            - 'essentials.banip'
            - 'essentials.kick'
            - 'essentials.unban'
            - 'essentials.unbanip'
            - 'essentials.protect.*'
            - 'essentials.mute'
            - 'vanish.*'
            - 'jail.command.jail'
            - 'jail.command.unjail'
            - 'jail.command.jailtransfer'
            - 'jail.command.jailtelein'
            - 'jail.command.jailteleout'
            - 'lwc.mod'
            - 'lockette.admin.snoop'
        'Admins':
            default: false
            info:
                prefix: '&4'
                suffix: null
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        Frisoso:
            group: Admins
            info:
                prefix: null
                suffix: null
            permissions: null
    
        Robinbloed:
            group: Moderator
            info:
                prefix: null
                suffix: null
            permissions: null
    
        Axinnn:
            group: Moderator
            info:
                prefix: null
                suffix: null
            permissions: null
    

    I also tried it without the quotes around Moderator, Admins and Default. As a last resort I also tried putting quotes around the inheritances, but that didn't made any differece.

    Here is the error I'm getting again:
    Code:
    [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:136)
        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:84)
        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: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 2579
        at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
        at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlain(ScannerImpl.java:1569)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchPlain(ScannerImpl.java:860)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:348)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:536)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:126)
        ... 13 more
    Is there someone that could help me? This is getting really annoying. :C
     
  7. Offline

    DteXadas

    Thanks for replying, but i used " - '-command' " to exempt the worldedit.* permissions. (like it is described in the .yml data: "To exempt a node use the - prefix like so: - '-foo.bar")
    It does work for the superpowers.use and for the permissions.reload command at all.
    so, what I wanted to do is that the moderators are allowed to use all commands (- '*') except the worldedit commands (- '-worldedit.*').
    However, like i said: the default group, who do not have any permissions are able to use the worldedit commands ingame, too and it would really suck if griefers find out that they can use them ;).
    Greets and thanks for replying again :)

    Edit: I've just restarted everything and now the default group cant use the worldedit commands anymore ;)
     
  8. Offline

    EmVee

    Question. Is there any way to remove nodes from administrator permissions (as in, after you've given them the '*' setting). I want to remove certain features of certain plugins that I find are annoying and conflict with other plugins that do the job better, but the other plugins take precedence over them and I can't remove them because they serve other purposes that I still need. :(


    For the record, I've already tried. I've tried to disable mcMMO's admin chat, their chimaera wing, and general's teleportation commands (in favor of Tp++), but they're still active for admins. I've even tried explicitly denying for my individual admins, but no luck.

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   Does not work for the default world.
    #  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:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   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:
    #       - '-general.time'
    ##
    #   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: true
            inheritance:
            permissions:
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.skills.*'
                - 'general.spawn'
                - 'general.player-info'
                - 'warp.to.*'
                - 'warp.create.public'
                - 'warp.create.private'
                - 'smpoll.view'
                - 'smpoll.vote'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                 - 'multicast.o.send'
                 - 'multicast.o.receive'
                 - 'silence.*'
        Admins:
            default: false
            info:
                prefix: '&9[A]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - '-mcmmo.chat.adminchat'
                - '-general.teleport.here'
                - '-general.teleport.to'
    
    ##
    # Users denote which users are included in which group.
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
    
        # TheNo1Yeti is in the Admin group
        EmilVee:
            group: Admins
            permissions:
        Doktory:
            group: Admins
            permissions:
        thelostonesway:
            group: Admins
            permissions:
        # Herpina is a member of the Moderator group but also has access to the herp.derp permissions
        #Herpina:
        #    group: Moderator
         #   info:
          #      prefix: 'Moo'
            #    suffix: 'Cow'
          #  permissions:
            #    - 'herp.derp'
    
        # Derpina is a member of the admin group but does not have access to the derp.derp permission node
    #    Derpina:
      #      group: Admins
        #    permissions:
        #        - '-derp.derp'
     
  9. Offline

    Celtic Minstrel

    There wouldn't be much point in doing so since this will (relatively) soon be superceded by a permissions system in Bukkit, so that you no longer need a plugin for permissions.
     
  10. Offline

    sonofthor

    I'm pretty much retarded on this plug-in myself and looking at your configuration may have helped me figure it out xD but I think part of the problem may be the lack off spaces before your permissions, all of the subnodes need that 4 space thing if I'm thinking correctly.
     
  11. Offline

    noob4action

    i dont know why but i can't build(it has to be the permissions plugin)
    i configured the yml file as i want but i haven't got the rights i want to have(that's why i can't build)

    this is my configuration file:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
    peter_h_:
          group: Admins
          permissions:
    player987:
          group: Admins
          permissions:
    dalakor22:
          group: Admins
          permissions:
    classicz:
          group: Admins
          permissions:
    affemitkeks:
          group: Admins
          permissions:
    
    please help!
     
  12. Offline

    Azakiel

    Hey. I can't get Permissions to run on my server, and i can't figure out why. i even tried replacing iChat with nChat, but it still don't work.
    here is what it says when i start the serveR:
    http://pastie.org/1767939
     
  13. Offline

    Frisoso

    I did run this through an YAML parser and it just gave me output so I did nothing wrong with the tabs
     
  14. Offline

    Scott

    "You don't have permission to use that." any time a user right clicks any object. It doesn't stop them from doing whatever they are trying to do though.

    I have tried restarting without the following plugins so far to see if it had any effect:
    LWC
    WorldGuard
    PermissionsPlus
     
  15. Offline

    Flopsie

    I do not know or this is a common error, but people are getting message thay don't have acces, but they do. eg.: When someone tries to open a chest, it throws a message, but they can acces the chest, so it"s only giving a message nothing is blocked..
     
  16. Offline

    Scott

    Interesting, I'm curious, what plugins do you run on your server? This only started happening last night for me.
     
  17. Offline

    Phantum

    Delete this line:
    permissions:admincmd.time.set,admincmd.time.day,admincmd.tp.to,admincmd.tp.from,admincmd.item.add,admincmd.tp.players,admincmd.player.list
    and leave it at
    Code:
        Permissions:
            - '*'
    
    you don't need that in your admin user, or in your admins group. The '*' already gives you the ability to use every command. Not only that, if you wanted those permissions on say a moderator, you'd have to indent each line and add 8 spaces, then a - then 'permission nod here'

    for example:
    Code:
        Permissions:
            - 'admincmd.time.set'
            - 'admincmd.time.day'
            - 'admincmd.tp.to'
    
    etc etc. use spaces for indenting and not the tab key as well.
     
  18. Offline

    zaklampje

    Plzz help, If I want to reload my server, it says: 'I do not have sufficient access to reload this server.'

    http://pastebin.com/TbTHG67L

    Ask me if u wanna see more...
     
  19. Offline

    ChazZTheSpazZ

    This is happening on my server as well, but with MyHome (latest) on CB617. Here's my permissions file, which I believe I have set up properly. This is my first experience with any kind of server though, so I may have something wrong. The problem is that my Moderators cannot use any /home commands even though they do have permission for it. I'll post more info if needed.

    Edit: Just noticed improper spacing on one of the Moderator permissions in the file I posted. Notepad++ shows the proper spacing though, so disregard that small error as it isn't one. The main problem remains.
     
  20. Offline

    Shinfo

    I'm an Op and in the permissions file set under admins for my world, yet I still come up on chat as [Default]
     
  21. Offline

    m5k

    Hey, lovely plugin. It's the basis of my rp server. However, I'd like to request an interesting feature (if it's not implemented already). Could it be possible to belong to multiple groups at once? It's kinda hard to explain, but I'll try my best. My server runs a ton of plugins, and it's configured so every group is a class with certain abilities. We have 4 towns. And I want players to assign themselves to towns, so I could manually set their groups depending on which town they have a house in. For example "Player" is a guard and he lives in "Brill", so he should have a prefix [Guard] and a suffix . Now if he buys a lot and builds a house in another town - "Hammerthorn", his name should look like "[Guard]Player[H]". Now I don't want this just for the sake of having nametags. I've talked with Nijikokun (iConomy's developer) and he just implemented the ability to pay money to a whole group with one command. I want to be able to pay salaries depending on professions (already possible) and collect taxes depending on which town they live in (requires multiple groups for one person). So if "Player" lives in "Brill" and is a guard, he'd get a salary for being a guard and taxes for his house in "Brill". But if he also lives in "Hammerthorn", he should get taxed for both houses. That's why I want to assign people to multiple groups. Is that possible, and if not would you consider implementing this? I'd do the taxes and salaries one-by-one, but we have over a hundred members now and it has become quite a hassle.

    Oh and inheritence is for one group to inherit another group's permissions. Basically I want one player to have multiple groups (or inherit permissions AND suffixes).
     
  22. Offline

    xMasterPiecesx

    The file of Permissions on my server isn't working. I checked everything, but I can't find the problem. Here's the code:
    Code:
    plugin:
        permissions:
            system: default
            copies:
        groups:
            Default:
                default: true
                info:
                    prefix: ''
                    suffix: ''
                    build: false
                inheritance:
                permissions:
                    - 'foo.bar'
                    - 'myhome.home.soc.*'
                    - 'myhome.home.basic.*'
                    - 'essentials.signs.heal.use'
                    - 'essentials.tp'
                    - 'essentials.tpahere'
                    - 'essentials.tpa'
                    - 'essentials.tpaccept'
                    - 'essentials.tpdeny'
                    - 'essentials.mail'
                    - 'essentials.helpop'
                    - 'essentials.suicide'
    
            Moderator:
                default: false
                info:
                    prefix: ''
                    suffix: ''
                    build: true
                inheritance:
                    - Default
                permissions:
                    - 'bar.foo'
                    - 'myhome.home.soc.*'
                    - 'myhome.home.basic.*'
                    - 'essentials.signs.heal.create'
                    - 'essentials.signs.heal.use'
                    - 'essentials.top'
                    - 'essentials.tp'
                    - 'essentials.tphere'
                    - 'essentials.tpahere'
                    - 'essentials.tpa'
                    - 'essentials.tpaccept'
                    - 'essentials.tpdeny'
                    - 'essentials.warp.*'
                    - 'essentials.msg'
                    - 'essentials.list'
                    - 'essentials.mail.*'
                    - 'essentials.helpop'
                    - 'essentials.whois'
                    - 'essentials.nick'
                    - 'essentials.gc'
                    - 'essentials.home'
                    - 'essentials.sethome'
                    - 'essentials.spawnmob'
                    - 'essentials.clearinventory'
                    - 'essentials.broadcast'
                    - 'essentials.antioch'
                    - 'essentials.burn'
                    - 'essentials.ping'
                    - 'essentials.kick'
                    - 'essentials.togglejail'
                    - 'essentials.setjail'
                    - 'essentials.give'
                    - 'essentials.item'
                    - 'essentials.kit.*'
                    - 'essentials.tree'
                    - 'essentials.bigtree'
                    - 'essentials.heal'
                    - 'essentials.suicide'
            Admins:
                default: false
                info:
                    prefix: ''
                    suffix: ''
                    build: true
                inheritance:
                permissions:
                    - '*'
        users:
            xMasterPiecesx:
                group: Default
                info:
                    prefix: ''
                    suffix: ''
                    build: false
                permissions:
     
    I hoped you could find a problem.

    PS: I checked the name of the file and the one of my world: they're the same, so that's not the problem
     
  23. Offline

    Itssnowing

    Config, please ^_^

    Do you have any special characters in your config, besides #s at the start of comments? Special characters include !@#$%^&*
    If they're in a name, or in a group name, try putting quotes around them.

    What do you mean by "Not working"? You can't place or remove blocks, you can't use commands, etc.?

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

    ITech

    I have an erro in my craftbukkit newest verison, it sais:
    19:21:26 [SCHWERWIEGEND] Could not load plugins\permissions.jar in plugins: null
     
  25. Offline

    Itssnowing

    There's gotta be more to it.
     
  26. Offline

    Azakiel

    umm, i'm not sure what you mean with config, but i'll just post something to seem intelligent :D
    And i think i have same problem as iTech ?

    http://pastie.org/1768637

    And the server is running:
    BigBrother
    Worldguard
    WorldEdit
    Dwarfcraft
    Craftbukkit-uptodate
    iConomy
    DefaultCommands
    Simpleshop
     
  27. Offline

    Celtic Minstrel

    Try posting the full error?
     
  28. Offline

    noob4action

    i dont know why but i can't build(it has to be the permissions plugin)
    i configured the yml file as i want but i haven't got the rights i want to have(that's why i can't build)

    this is my configuration file (open)
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
    peter_h_:
          group: Admins
          permissions:
    player987:
          group: Admins
          permissions:
    dalakor22:
          group: Admins
          permissions:
    classicz:
          group: Admins
          permissions:
    affemitkeks:
          group: Admins
          permissions:
    

    please help!
     
  29. Offline

    ITech

    Well the whole thing is :
    Code:
    19:21:23 [INFO] Starting minecraft server version Beta 1.4
    19:21:23 [INFO] Loading properties
    19:21:23 [INFO] Starting Minecraft server on *:25565
    19:21:23 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-
    g4c7a9e7-b617jnks (MC: 1.4)
    19:21:23 [INFO] Preparing level "World1"
    19:21:23 [INFO] Preparing start region
    19:21:24 [INFO] 144 recipes
    19:21:25 [INFO] Preparing spawn area: 20%
    19:21:26 [INFO] Preparing spawn area: 93%
    19:21:26 [SCHWERWIEGEND] Could not load plugins\BlockDrops.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.NoSuchMethodException: com.Snowl.bukkit.blockdrops.BlockDro
    ps.<init>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:100)
            ... 8 more
    19:21:26 [INFO] Invalid config file found and converted to proper name/format.
    19:21:26 [SCHWERWIEGEND] 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: while parsing a block mapping
     in "<reader>", line 61, column 5:
            Guest:
            ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 199, column 6:
             Govenor:
             ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:576)
            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.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
    19:21:26 [SCHWERWIEGEND] Could not load plugins\WorldGuard.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: java.lang.NoClassDefFoundError: com/sk89q/worldedit/bukkit/selections
    /Selection
            at java.lang.Class.getDeclaredMethods0(Native Method)
            at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
            at java.lang.Class.privateGetPublicMethods(Unknown Source)
            at java.lang.Class.getMethods(Unknown Source)
            at com.sk89q.minecraft.util.commands.CommandsManager.registerMethods(Com
    mandsManager.java:103)
            at com.sk89q.minecraft.util.commands.CommandsManager.registerMethods(Com
    mandsManager.java:132)
            at com.sk89q.minecraft.util.commands.CommandsManager.register(CommandsMa
    nager.java:82)
            at com.sk89q.worldguard.bukkit.WorldGuardPlugin.<init>(WorldGuardPlugin.
    java:101)
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.bukkit.selectio
    ns.Selection
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            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(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 21 more
    19:21:26 [SCHWERWIEGEND] Could not load plugins\General.jar in plugins: Permissi
    ons
    org.bukkit.plugin.UnknownDependencyException: Permissions
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:88)
            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)
    19:21:26 [INFO] [WormholeXTreme][v0.832][By Lologarithm & alron]Load Beginning.
    19:21:27 [INFO] [WormholeXTreme]0 Wormholes loaded from WormholeDB.
    19:21:27 [INFO] [WormholeXTreme][v0.832]Load Completed.
    19:21:27 [INFO] BedrockControl version 1.3 is enabled with op-only permissions!
    19:21:27 [INFO] ChatBukkit v0.0.1 is enabled!
    19:21:27 [INFO] [Kit]  Permission system not enabled. Disabling plugin.
    19:21:27 [INFO] KitPlugin version 1.1 is disabled!
    19:21:27 [INFO] KitPlugin version 1.1 is enabled!
    19:21:27 [INFO] MCBans: Permissions plugin not found! falling back to Ops check.
    
    19:21:27 [INFO] MCBans: MCBans version 2.8 is enabled!
    19:21:27 [INFO] MCBans: Voting enabled!
    19:21:27 [INFO] MCBans: Checking for premium!
    19:21:28 [SCHWERWIEGEND] null loading MCBans v2.8 (Is it up to date?)
    java.lang.NullPointerException
            at com.firestar.mcbans.mcbans.onEnable(mcbans.java:178)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            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)
    19:21:30 [INFO] [MYHOME]: 1 homes loaded
    19:21:30 [WARNUNG] [MYHOME] A permission plugin isn't loaded.
    19:21:30 [WARNUNG] [MYHOME] 'Help' isn't detected. No /help support.
    19:21:30 [INFO] [MYHOME] MyHome 1.9.3 enabled
    19:21:30 [SCHWERWIEGEND] BLOCK_PLACED loading nSpleef v0.1.5 (Is it up to date?)
    
    java.lang.NoSuchFieldError: BLOCK_PLACED
            at com.niccholaspage.nSpleef.nSpleef.onEnable(nSpleef.java:113)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            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)
    19:21:30 [INFO] ScrapBukkit version 0.2.1 is enabled!
    19:21:30 [INFO] WorldEdit 4.1 enabled.
    19:21:30 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    19:21:30 [SCHWERWIEGEND] PLAYER_ITEM loading WorldEdit v4.1 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_ITEM
            at com.sk89q.worldedit.bukkit.WorldEditPlugin.registerEvents(WorldEditPl
    ugin.java:130)
            at com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.j
    ava:102)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            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)
    19:21:30 [INFO] [WormholeXTreme][v0.832]Enable Beginning.
    19:21:30 [INFO] [WormholeXTreme]Permission Plugin not yet available. Defaulting
    to built-in permissions until Permissions is loaded.
    19:21:30 [INFO] [WormholeXTreme]iConomy Plugin not yet available - there will be
     no iConomy integration until loaded.
    19:21:30 [INFO] [WormholeXTreme]Help Plugin not yet available - there will be no
     Help integration until loaded.
    19:21:31 [INFO] [WormholeXTreme][v0.832]Enable Completed.
    19:21:31 [INFO] Done (0,730s)! For help, type "help" or "?"
     
  30. Offline

    Itssnowing

    The user Jesperkrab: line needs another space.
    And.. Something's up with the Plugin: line. Can you try deleting that entire line, and re-writing it?

    Each user and their info (The Group: and Permissions: lines,) need four more spaces.

    This is an easy on to solve, if you could post your Config file.

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

    Celtic Minstrel

    Well, you could just add the spaces to the actual username lines. Less work. <_<
     
Thread Status:
Not open for further replies.

Share This Page