Halp? With permissions world.yml

Discussion in 'Bukkit Help' started by Zango, Apr 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Zango

    Hey Ive recently had to switch over to Permissions (unforunatly). I have been trying my best with it but I just cant the the world.yml file to work, I always get errors.

    Could somebody please proof read my file, so I could put my server back up?

    Thanks all

    Heres the world.yml File.
    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
        plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
        groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - 'foo.bar'
            - 'multiverse.tp'
    	    - 'multiverse.world.spawn'
    	    - 'multiverse.list'
    	    - 'multiverse.portal.list'
    	    - 'warpz0r.warp'
    	    - 'warpz0r.set'
    	    - 'warpz0r.remove'
    	    - 'warpz0r.list'
    	    - 'warpz0r.warpto'
    	    - 'warpz0r.home'
    	    - 'warpz0r.sethome'
    	    - 'general.spawn'
    	    - 'general.teleport'
    	    - 'general.teleport.here'
    	    - 'general.teleport.to'
    	    - 'general.time'
    	    - 'general.player-info'
    	    - 'falsebook.blocks.*'
    	    - 'falsebook.blocks.hiddenswitch.create'
    	    - 'falsebook.blocks.hiddenswitch'
    	    - 'lockette.create.*'
    	    - 'dropchest'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        zango:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
     
  2. Offline

    fffizzz

    try posting the errors, versions of craftbukkit/permissions.
     
  3. Offline

    Codisimus

    rename "world.yml" to [WorldName].yml
    [WorldName] == the name of your world file
     
  4. Offline

    Zango

    @fffizzz
    Craft bukkit 670
    Permission is the latest. Downloaded it today.
    Code:
    16:51:06 [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(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava: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: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 71, column 1:
                - 'multiverse.world.spawn'
        ^
    
            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$ParseIndentlessSequenceEntry.pro
    duce(ParserImpl.java:538)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:203)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfigurati
    on.java:58)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    132)
            ... 13 more
    @Codisimus

    "world" is the servers world name.
     
  5. Offline

    shadow85

    Give this a try. Also, your Minecraft ingame name, is it Zango or zango, it does matter, and could be causing a problem if it's wrong. You have some weird spacing and I took out all the instructions, sometimes that fixes it too.

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - 'multiverse.tp'
            - 'multiverse.world.spawn'
            - 'multiverse.list'
            - 'multiverse.portal.list'
            - 'warpz0r.warp'
            - 'warpz0r.set'
            - 'warpz0r.remove'
            - 'warpz0r.list'
            - 'warpz0r.warpto'
            - 'warpz0r.home'
            - 'warpz0r.sethome'
            - 'general.spawn'
            - 'general.teleport'
            - 'general.teleport.here'
            - 'general.teleport.to'
            - 'general.time'
            - 'general.player-info'
            - 'falsebook.blocks.*'
            - 'falsebook.blocks.hiddenswitch.create'
            - 'falsebook.blocks.hiddenswitch'
            - 'lockette.create.*'
            - 'dropchest'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
     
    users:
        zango:
            group: Admins
            permissions:
        
     
  6. Offline

    fffizzz

    Also, so you're aware, there are tabs in your config, the error points that out.
    Code:
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token  in "<reader>", line 71, column 1:             - 'multiverse.world.spawn'     ^
     
  7. Offline

    svict4

    fixed up the spacing some more - you had some wrong indentation
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'multiverse.tp'
                - 'multiverse.world.spawn'
                - 'multiverse.list'
                - 'multiverse.portal.list'
                - 'warpz0r.warp'
                - 'warpz0r.set'
                - 'warpz0r.remove'
                - 'warpz0r.list'
                - 'warpz0r.warpto'
                - 'warpz0r.home'
                - 'warpz0r.sethome'
                - 'general.spawn'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.teleport.to'
                - 'general.time'
                - 'general.player-info'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.hiddenswitch.create'
                - 'falsebook.blocks.hiddenswitch'
                - 'lockette.create.*'
                - 'dropchest'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        zango:
            group: Admins
            permissions:
    i've tested it and it seems to work ^_^
     
    Zango likes this.
  8. Offline

    Zango

    Seems to work. Ill continue to test it on my server and report back.


    Thanks to you.
     
  9. Offline

    shadow85

    I thought it copied over wrong, bleh.
     
  10. Offline

    Zango

    Need more help please?

    Main World:
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'multiverse.tp'
                - 'multiverse.world.spawn'
                - 'multiverse.list'
                - 'multiverse.portal.list'
                - 'warpz0r.warp'
                - 'warpz0r.set'
                - 'warpz0r.remove'
                - 'warpz0r.list'
                - 'warpz0r.warpto'
                - 'warpz0r.home'
                - 'warpz0r.sethome'
                - 'general.spawn'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.teleport.to'
                - 'general.time'
                - 'general.player-info'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.hiddenswitch.create'
                - 'falsebook.blocks.hiddenswitch'
                - 'lockette.create.*'
                - 'dropchest'
                - 'minecraft.help'
                - 'minecraft.tp'
                - 'minecraft.list'
                - 'minecraft.time'
                - 'minecraft.time.set'
                - 'minecraft.time.add'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        zango:
            group: Admin
            permissions:
        carex23:
    	    group: Default
    		permissions:
        flinjominjo:
            group: Default
    		permissions:
    Other world:

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'multiverse.tp'
                - 'multiverse.world.spawn'
                - 'multiverse.list'
                - 'multiverse.portal.list'
                - 'warpz0r.warp'
                - 'warpz0r.set'
                - 'warpz0r.remove'
                - 'warpz0r.list'
                - 'warpz0r.warpto'
                - 'warpz0r.home'
                - 'warpz0r.sethome'
                - 'general.spawn'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.teleport.to'
                - 'general.time'
                - 'general.player-info'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.hiddenswitch.create'
                - 'falsebook.blocks.hiddenswitch'
                - 'lockette.create.*'
                - 'dropchest'
                - 'minecraft.help'
                - 'minecraft.tp'
                - 'minecraft.list'
                - 'minecraft.time'
                - 'minecraft.time.set'
                - 'minecraft.time.add'
                - 'superpowers.use'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        zango:
            group: Admin
            permissions:
    Creative:

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            Default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        zango:
            group: Admin
            permissions:
        carex23:
            group: Default
            permissions:    
    I know this is alot to ask, but I can never get the YML's right.
     
Thread Status:
Not open for further replies.

Share This Page