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

    BlueRain

    I have Essential v2.0 beta and Permissions v2.5.2, along with the latest craftbukkit, Multiverse, MultiInv, SpawnControl, BigBrother and others that may appear to be irrelevant. Anyways, I want to limit the users from /item, /i commands. I What I understand is "permissions:" allows players to use the commands and not listing them under permissions: disallows them The problem occurs when I want to disallow users in my server from /item, and /i command but nothing appears to be working. According to the note in the config file, it says -'-essential.item' exempts them from using them. So, I have even tried that, without any success. I'd like to have my configuration looked over. I also have no logs about this issue to report. Currently, every players has the ability to use /item, and /i.I am planning to use Multiverse to create a Creative server and Survival server. We might get bored with Creative so switch over to Survival, etc.

    Code:
    plugin:
    
        permissions:
    
            system: default
    
            copies: netherworld
      
    ##
    
    # 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: ''
    
                build: true
    
            inheritance:
    
            permissions:
    
                - 'permissions.reload'
      
                - 'essentials.msg'
    
                - 'essentials.afk'
    
                - 'essentials.rules'
    
                - 'essentials.motd'
    
                - 'essentials.me'
    
                - 'essentials.list'
    
                - 'essentials.mail'
    
                - 'essentials.mail.send'
    
                - 'essentials.helpop'
    
                - 'essentials.whois'
    
                - 'essentials.compass'
    
                - 'multiverse.tp'
    
                - 'multiverse.portal.create'
    
                - 'multiverse.portal.remove'
    
                - 'multiverse.portal.select'
    
                - 'multiverse.portal.destination'
    
                - 'multiverse.portal.rename'
    
                - 'multiverse.portal.list'
    
        Moderator:
    
            default: false
    
            inheritance:
    
                - Default
    
            info:
    
                prefix: 'M'
    
                build: true
    
            permissions:
    
                - 'essentials.ban'
    
                - 'essentials.banip'
    
                - 'essentials.mute'
    
                - 'essentials.kick'
    
                - 'essentials.kickall'
    
                - 'essentials.unban'
    
                - 'essentials.unbanip'
    
        Admins:
    
            default: false
    
            inheritance:
    
                - Default
    
                - Moderator
    
            info:
    
                build: true
    
            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:
    
        BlueRain:
    
            group: Default
    
            permissions:
     
  3. Offline

    Linaks

    Maybe you can add a feature that controlls the chat?
    If I write in World 1 "Hi" it comes: [Admin]Linaks: Hi
    But I changed me in World 2 config as Builder.. Now If I write "Hi" it still comes: [Admin]Linaks: Hi.
    You understand?

    Please add a feature for multiworld-chat.
    Example: In World 1 = Admin and in World 2 = Builder



    And can anyone make a example for multiworld config?
    I have 2 .yml files. In the first .yml which has the default world, I have written in coppies: world2

    Code:
    plugin:
      permissions: {system: default, copies: world2}
    And in the second .yml I have written in coppies: world1

    Code:
    plugin:
      permissions: {system: default, copies: world1}
    My Server.properties:

    Code:
    level-name=world1
     
  4. Offline

    deliterx7

    G'day Guys,

    Fairly new to using Bukkit... been using hmod for months now though =). Just checking that this version is for CraftBukkit and supports the latest version (499) ?

    Cheers,
     
  5. Offline

    LordJason

    I apologize if this has already been answered, but what permission do I need to grant to people for them to be able to use the /permissions -reload all command?
     
  6. Offline

    Bigglesworth

    I am trying to do / am having trouble with both of these issues. for the error in console, I have tryed updating craftbukkit to 456, 493, and 499, and none work. they break this plugin in half.
    As for the multi world support (MultiVerse) , I have it set up but I cant test it until the server will even LOAD permissions.. (which I dont think the multiworld "build in one as guest, no buld in other" is going to work.. as much as I'd like it to.)
     
  7. Offline

    TOAST7312

    Ok so I apparently seem to be having another issue with Permissions related to the plugin HeroChat:
    Show Spoiler

    [​IMG]


    The above was the initial issue I had. HeroChat basically takes the 'prefix' and 'suffix' in the permissions config and adds them to the chat in their respective places. For some reason, however, the prefix and suffix would both double themselves no matter what I did.

    Then the issue temporarily changed:

    Show Spoiler

    [​IMG]


    I restarted the server and found that the above picture was occuring. This is an example of how HeroChat is supposed to function inherantly; displaying the as-typed prefix before one's name in chat. This, however, was actually the result of an apparent error, the warnings it caused being as follows:

    Show Spoiler
    Code:
    19:05:08 [INFO] [CONSOLE] hey
    19:05:16 [INFO] [HeroChat] [g] Haelelti: hello?
    19:05:16 [WARNING] Missing a prefix or suffix for VIP
    >say how goes it its dave, i can talk through the console
    19:05:24 [INFO] [CONSOLE] how goes it its dave, i can talk through the console
    19:05:32 [INFO] [HeroChat] [g] Haelelti: oh, i see
    19:05:32 [WARNING] Missing a prefix or suffix for VIP
    19:06:10 [INFO] [HeroChat] [g] Haelelti: it goes, i really hate gathering stone
    sometimes, government building is starting to happen though
    19:06:10 [WARNING] Missing a prefix or suffix for VIP
    >oh nice awesome
    19:06:24 [INFO] Unknown console command. Type "help" for help.
    >i spent all of yesterday making my smaller equivalent of my city's scotland yar
    d or we
    19:06:44 [INFO] Error: Only in-game players can use i.
    >
    19:07:48 [INFO] Unknown console command. Type "help" for help.
    >say spent all day yesterday making my city's equivalent of scottland yard or so
    me shit
    19:08:08 [INFO] [CONSOLE] spent all day yesterday making my city's equivalent of
    scottland yard or some shit
    19:08:25 [INFO] [HeroChat] [g] Haelelti: fancy
    19:08:25 [WARNING] Missing a prefix or suffix for VIP
    >say indeed thought its not as big as i thought it was when i built the outlying
    structure
    19:08:56 [INFO] [CONSOLE] indeed thought its not as big as i thought it was when
    i built the outlying structure
    >it has 4 floors but the lobby takes up most of the firs and second floor
    19:09:17 [INFO] Unknown console command. Type "help" for help.
    >say it has 4 floors but the lobby takes up most of the 1st and 2nd floors
    19:09:30 [INFO] [CONSOLE] it has 4 floors but the lobby takes up most of the 1st
    and 2nd floors
    >say to my disdain
    19:09:48 [INFO] [CONSOLE] to my disdain
    19:09:57 [INFO] [HeroChat] [g] Haelelti: thats how it goes man
    19:09:57 [WARNING] Missing a prefix or suffix for VIP
    >say its true but im ok with it ill make it work
    19:10:11 [INFO] [CONSOLE] its true but im ok with it ill make it work
    19:10:30 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    >say i found a plugin for making moving blocks and stuff but it looks complicate
    d
    19:10:57 [INFO] [CONSOLE] i found a plugin for making moving blocks and stuff bu
    t it looks complicated
    19:11:35 [INFO] [HeroChat] [g] Haelelti: moving blocks? like, secret doors and s
    hit?
    19:11:35 [WARNING] Missing a prefix or suffix for VIP
    >no like cars and airships and shit
    19:12:27 [INFO] Unknown console command. Type "help" for help.
    >say no i mean like cars and airships and shit
    19:12:35 [INFO] [CONSOLE] no i mean like cars and airships and shit
    19:12:39 [INFO] evilfruitloop [/68.196.54.56:2674] logged in with entity id 1798
    53
    19:12:39 [WARNING] Missing a prefix or suffix for VIP
    19:12:39 [INFO] Forcing MCServerlist update.
    19:12:47 [INFO] [HeroChat] [g] Haelelti: very fancy stuff
    19:12:47 [WARNING] Missing a prefix or suffix for VIP
    19:12:54 [INFO] [HeroChat] [g] evilfruitloop: WHAT IS?
    19:12:54 [WARNING] Missing a prefix or suffix for VIP
    19:12:57 [INFO] [HeroChat] [g] Haelelti: though secret doors would be really nic
    e to have
    19:12:57 [WARNING] Missing a prefix or suffix for VIP
    >say  there is actually a plugin for that i was debating getting
    19:13:15 [INFO] [CONSOLE] there is actually a plugin for that i was debating get
    ting
    19:13:24 [INFO] [HeroChat] [g] Haelelti: moving blocks, like airplanes and cars
    19:13:24 [WARNING] Missing a prefix or suffix for VIP
    >i was thinking of it more for the fantasy aspect, such as floating cities being
    uch as floating cities being able to move
    19:14:12 [INFO] Error: Only in-game players can use i.
    >say i was thinknig of it more for floating movable cities and airships
    19:14:26 [INFO] [CONSOLE] i was thinknig of it more for floating movable cities
    and airships
    >say zepplins
    19:14:36 [INFO] [CONSOLE] zepplins
    19:14:47 [INFO] [HeroChat] [g] Haelelti: powered by lava crystals? :P
    19:14:47 [WARNING] Missing a prefix or suffix for VIP
    19:14:52 [INFO] [HeroChat] [g] evilfruitloop: everyone gets an airship
    19:14:52 [WARNING] Missing a prefix or suffix for VIP
    >say no no airships for dirty dwarves
    19:15:08 [INFO] [CONSOLE] no no airships for dirty dwarves
    >say and i swear if i see another lava crystal
    19:15:20 [INFO] [CONSOLE] and i swear if i see another lava crystal
    19:15:29 [INFO] [HeroChat] [g] evilfruitloop: i have 10 :)
    19:15:29 [WARNING] Missing a prefix or suffix for VIP
    >say 10 dirty dwarves?
    19:15:40 [INFO] [CONSOLE] 10 dirty dwarves?
    19:15:48 [INFO] [HeroChat] [g] evilfruitloop: lol, i need string
    19:15:48 [WARNING] Missing a prefix or suffix for VIP
    19:15:58 [INFO] [HeroChat] [g] evilfruitloop: how can i make it
    19:15:58 [WARNING] Missing a prefix or suffix for VIP
    >say why is it giving me a prefix/suffix error for you guys
    19:16:05 [INFO] [CONSOLE] why is it giving me a prefix/suffix error for you guys
    
    19:16:09 [INFO] [HeroChat] [g] Haelelti: comes from spiders :/
    19:16:09 [WARNING] Missing a prefix or suffix for VIP
    >


    As you may well see, anything related to the HeroChat plugin has [HeroChat] placed before it. The warnings do not. I've been speaking to the HeroChat author for a while now and we've concluded the only real place this error could be happening is it the Permissions config file. As such I was hoping you might be able to look into my config and tell me exactly what might be wrong.

    Permissions Config YML: http://pastebin.com/PxJwKqip
    HeroChat Config YML(just in case): http://pastebin.com/uhAff5gD

    Help me Obi Wan TheYeti, you're my only hope!
     
  8. Offline

    Drakmyth

    I just started using Permissions myself, but from what I understand, you shouldn't have both the 'Default' and 'VIP' groups have 'default: true'. If I understand the config file correctly, the 'default: true' setting indicates which groups users will be in if you don't put them in a specific one. Try changing line 57 to 'default: false' and see if that helps.
     
  9. Offline

    LordJason

    I found that herochat was adding the GroupName . So if I had a group named "admin" with a prefix "admin". The result would be "adminadmin". The prefix was added before the groupname. So I just set the prefix to a color code, and allowed the group name to be used, because the result fit what I wanted anyway.

    Code:
    Admin:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance:
            permissions:
               - '*'
    
    This code results in [Admin] name: chatmessage
     
  10. Offline

    tension69

    Multiverse with differing permissions:-
    Leave the top as:-
    Code:
    plugin:
        permissions:
            system: default
    
    1. <yourdefaultworld> world - put default.yml in bukkitrootfolder/plugins/permissions
    2. Copy it
    3. Rename it to eg: nether.yml
    4. Paste it into multi world folder eg: bukkitrootfolder/nether/
    5. Edit the group permissions as you see fit(inc build: true/false)
    6. (optional) Have a beer.
     
    Jandalf likes this.
  11. Offline

    korin125

    I just downloaded some plugins and they are all working perefectly, except one that requires permissions. I was trying to avoid it as muhc as possible but ut's something that my server really needs. Eventually I gave in and set up all my permissions. Now I get an error that 1. stops loginmessage from working and 2. causes errors on almost any command. Here are the errors I get. I will post my configuration file if needed. Please help!

    23:58:41 [SEVERE] Could not pass event PLAYER_JOIN to LoginMessage
    while parsing a block mapping
    in "<reader>", line 13, column 1:
    plugin:
    ^
    expected <block end>, but found BlockEntry
    in "<reader>", line 68, column 1:
    - 'iConomy.payment'
    ^

    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.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.nijiko.permissions.Control.load(Control.java:149)
    at com.nijiko.permissions.Control.loadWorld(Control.java:112)
    at com.nijiko.permissions.Control.getGroup(Control.java:559)
    at com.tahkeh.loginmessage.LoginMessagePlayerListener.sendMultiMessage(L
    oginMessagePlayerListener.java:167)
    at com.tahkeh.loginmessage.LoginMessagePlayerListener.onPlayerJoin(Login
    MessagePlayerListener.java:60)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:125)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:98)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
    at net.minecraft.server.Packet1Login.a(SourceFile:46)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
     
  12. Offline

    woodzy

    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: defalt
            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:
      4days:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - '-commandSigns.use'
                - '-stargate.use'
                - '-iConomy.payment'
        Miner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '-commandSigns.use'
                - '-stargate.use'
                - '-iConomy.payment'
                - '-iConomy.rank'
                - '-iConomy.list'
        Permium:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
              - 'Miner'
            permissions:
                - '-stargate.hidden'
                - '-stargate.private'
                - '-stargate.create'
                - '-worldedit.generation.forest'
                - '-worldedit.extinguish'
                - '-uQuest.CanQuest'
        ultra:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - 'Permium'
            permissions:
                - '-worldedit.superpickaxe'
                - '-worldedit.tool.tree'
                - '-worldedit.tool.info'
                - '-worldedit.navigation.jumpto'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - 'ultra'
            permissions:
                - '-commandSigns.create'
                - '-vanish.vanish'
                - '-vanish.vanish.list'
                - '-stargate.destroy'
                - '-iConomy.access'
                - '-worldedit.navigation.jumpto'
                - '-worldedit.fixwater'
                - '-worldedit.drain'
                - '-worldedit.fill'
                - '-yeditor.editor'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        woodzykiler:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
        Herpina2:
            group: Miner
            info:
                prefix: ''
                suffix: ''
            permissions:
    i get this error and every one ca STILL BUILD!!! WHAT DO I DO? craftbukkit#490 and below that is my perminnins set up.
    08:40:18 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    while parsing a block mapping
    in "<reader>", line 60, column 4:
    4days:
    ^
    expected <block end>, but found BlockMappingStart
    in "<reader>", line 71, column 5:
    Miner:
    ^
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.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: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.nijiko.permissions.Control.load(Control.java:149)
    at com.nijiko.permissions.Control.loadWorld(Control.java:112)
    at com.nijiko.permissions.Control.getGroups(Control.java:643)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:64)
    at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:272)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112)
    at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:77)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:369)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  13. Offline

    TOAST7312

    Unfortunately this did nothing, which doesnt surprise me considering I'm an admin and not default/VIP, but i appreciate pointing out this error. it would have caused great difficulties later.

    I tested this exact line of code just now; this was the result:

    Show Spoiler
    [​IMG]


    As you can see it did not automatically insert the group as you believed it would. Hell, as far as I can tell it didn't even put in the color. From the previous pictures one can discern, as i reloaded permissions multiple times, that the prefix/suffix was changing with what i entered into their respective fields. It was literally doubling everything I put in there. Though I do appreciate the suggestion.

    I have tried a fresh version of both HeroChat and Permissions before, it has done nothing.
     
  14. Offline

    BlueRain

    How would I have permissions setting per world with Multiverse? I have tried having permissions of the world in Permissions directory. That didn't work. I tried placing them in the world's directory. That also didn't work. I want to have permissions.yml per world. Is this possible?
     
  15. Offline

    deliterx7

    I just keep running into these errors, they are flooding my console... any ideas?. As soon as i disable permissions, lord behold the issues stop (this just isn't feasible though);

    Code:
    16:22:03 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 70, column 24:
                    build: true
                               ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:360)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at com.nijiko.permissions.Control.load(Control.java:149)
            at com.nijiko.permissions.Control.loadWorld(Control.java:112)
            at com.nijiko.permissions.Control.getGroups(Control.java:645)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:
    64)
            at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.j
    ava:272)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:226)
            at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112
    )
            at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:77)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:369)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
     
  16. Offline

    DThielke

    This sort of error is the direct result of a problem with your config. This one specifically means that you're using tabs (\t) instead of spaces. YAML does not allow the use of tabs.
     
  17. Offline

    deliterx7

    Well i'll go through and make sure their aren't any, this is using pretty much the stock yml provided and using notepad++ to make changes.

    I've provided a copy of my yml below in case you guys can pick something out, cheers.

    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:
        Moderator:
            build: true
            Permissionss:
                - 'general.items'
                - 'general.spawn'
                - 'general.spawn.set'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.time'
                - 'general.player-info'
        Admins:
            default: false
            info:
                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:
        TheReaperDK:
            Group: Admins
            permissions:
        K2_Dezza:
            Group: Moderator
            permissions:
     
  18. I have the same warnings, but I am using essentials chat, not hero chat.
     
  19. Offline

    deliterx7

    I've followed the layout exactly and i'm 99% positive that there are no tabs in my config file, yet i still run into these errors.

    I've included my config file for revision. I'll note that when i took out spacings in between groups and users for example, i was not able to place or remove blocks (as admin)

    Any advice guys?

    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:
        Moderator:
            Default: false
            build: true
            Permissionss:
                - 'general.items'
                - 'general.spawn'
                - 'general.spawn.set'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.time'
                - 'general.player-info'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
    
        TheReaperDK:
            Group: Admins
            Permissions:
    
        K2_Dezza:
            Group: Moderator
     
  20. Offline

    Drakmyth

    The first things I notice are that you have no default group (which I don't think should matter since you're marked as admin, but IDK) and that the Permissions line for the Moderator group has an extra 's' at the end. Also, you seem to be missing most of the "info" block for the Moderator group and (if yaml is case-sensitive, which I don't know) the Default and Permissions lines in the Moderator group should not be capitalized.
     
  21. Offline

    deliterx7

    Ok made a few changes, and although i'm no longer receiving the errors as before... i still cannot place/remove blocks. Console doesn't throw any errors (not sure it would in this case)
     
  22. It seems multi-world support is still quite buggy (no errors, just functions wrong)

    I have 2 worlds, 1 where i am Admin and have access to everything, another where i am Guest and shouldn't be able to do anything.
    While my build-rights have been revoked on the world i'm Guest on, i can still use all my commands, this includes worldedit commands etc. even though i removed all commands from the groups in the world specific .yml file

    - EDIT -
    Turns out it was because i was an OP ... stupid me, heh :p
     
  23. Offline

    Drakmyth

    Make sure you're not mistaking this for spawn protection. I ran into the same thing when I first got Permissions installed. Turns out the default spawn protection is a 16 block radius defined in the server.properties file. Either moving away from the spawn or changing the spawn-protection variable to 0 fixed it. It wasn't actually a problem with Permissions at all.
     
  24. Offline

    deliterx7

    Nah im well away from the spawn point, even changed it to 0... as soon as Permissions started working (reconfiguration) now this started happening...
     
  25. Offline

    ChrisDude70

    I have been getting this error.
    19:36:31 [SEVERE] BLOCK_PLACED loading Permissions v2.5.2 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_PLACED
    at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.jav
    a:149)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:188)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)


    I have no idea what it means, how do i fix it?
     
  26. Offline

    LordJason

    My bad, I am using iChat not Herochat.
     
  27. Offline

    anonymous

    Just curious, but does this work with essentials?
     
  28. Offline

    Linaks

    sry but doesn't works for me :(
    Is the Chat also fixxed? Other prefixes?

    Please describe it bether :(
     
    BlueRain likes this.
  29. Offline

    Lord Chaos

    I am using notepad++, but it keeps giving me the /t error if I add anything manually to the file. If I don't add new lines, then I don't get errors. :/
     
  30. Offline

    buckeT.de

    Hey,

    the antibuild function does not work for each Block, hum?

    i.e.: with "build= false"
    you are ABLE to build repeater, but not break them.


    Greetz,
    buckeT




    ps. Keep it up! Great work for updating permissions!
     
  31. Offline

    Ultratone

    nah.. this plugin is way harder than the groupmanager. If you dont like to spend 1 hour of conficuration only for some users, use GM. You should integrate "in game commands". And also permission so other users can add Permissions to Player.
    my 5 cents..
     
Thread Status:
Not open for further replies.

Share This Page