Help with my Permissions config file >.<

Discussion in 'Bukkit Help' started by shadow85, Apr 1, 2011.

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

    shadow85

    Could someone look over my config file and cmd error and help me fix it?

    I had everything set up fine with just Redhandjane (me) and Barknhots as Admins, everything was working great! Then.. I tried to get spiffy...If you could please explain where I went wrong I would be grateful.

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
     Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
    
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'ecoCreature.Rewarding.Creeper'
                - 'ecoCreature.Rewarding.Skeleton'
                - 'ecoCreature.Rewarding.Zombie'
                - 'ecoCreature.Rewarding.Spider'
                - 'ecoCreature.Rewarding.PigZombie'
                - 'ecoCreature.Rewarding.Ghast'
                - 'ecoCreature.Rewarding.Slime'
                - 'ecoCreature.Rewarding.Giant'
                - 'ecoCreature.Rewarding.Chicken'
                - 'ecoCreature.Rewarding.Cow'
                - 'ecoCreature.Rewarding.Pig'
                - 'ecoCreature.Rewarding.Sheep'
                - 'ecoCreature.Rewarding.Squid'
                - 'ecoCreature.Rewarding.Spawner
                - 'iConomyHealth.help'
                - 'iConomyHealth.heal
                - 'iConomyHealth.list'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'localshops.buysell'
                - 'localshops.manage'
                - 'localshops.create'
                - 'localshops.move'
                - 'mcmmo.skills.*'
    
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'ecoCreature.Rewarding.Creeper'
                - 'ecoCreature.Rewarding.Skeleton'
                - 'ecoCreature.Rewarding.Zombie'
                - 'ecoCreature.Rewarding.Spider'
                - 'ecoCreature.Rewarding.PigZombie'
                - 'ecoCreature.Rewarding.Ghast'
                - 'ecoCreature.Rewarding.Slime'
                - 'ecoCreature.Rewarding.Giant'
                - 'ecoCreature.Rewarding.Chicken'
                - 'ecoCreature.Rewarding.Cow'
                - 'ecoCreature.Rewarding.Pig'
                - 'ecoCreature.Rewarding.Sheep'
                - 'ecoCreature.Rewarding.Squid'
                - 'ecoCreature.Rewarding.Spawner'
                - 'iConomyHealth.help'
                - 'iConomyHealth.heal'
                - 'iConomyHealth.hurt'
                - 'iConomyHealth.list'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.admin.stats'
                - 'iConomy.admin.account.create'
                - 'localshops.buysell'
                - 'localshops.manage'
                - 'localshops.manage.owner'
                - 'localshops.create'
                - 'localshops.create.free'
                - 'localshops.move'
                - 'localshops.move.free'
                - 'localshops.reload'
                - 'mcmmo.skills.*'
    
        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:
        Redhandjane:
            group: Admins
            permissions:
        Barknhots:
            group: Moderator
            info:
                prefix:
                suffix:
            permissions:
    Code:
    21:32:36 [INFO] Starting minecraft server version Beta 1.4
    21:32:36 [INFO] Loading properties
    21:32:36 [INFO] Starting Minecraft server on *:25565
    21:32:36 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-
    g4c7a9e7-b617jnks (MC: 1.4)
    21:32:36 [INFO] Preparing level "world"
    21:32:36 [INFO] Preparing start region
    21:32:37 [INFO] 144 recipes
    21:32:37 [INFO] Preparing spawn area: 56%
    21:32:38 [INFO] Invalid config file found and converted to proper name/format.
    21:32:38 [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:105)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:158)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:106)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:101)
            ... 8 more
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 69, column 1:
    
        ^
    
            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$ParseBlockMappingValue.produce(P
    arserImpl.java:592)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    126)
            ... 13 more
    21:32:38 [SEVERE] Could not load plugins\sqlitejdbc-v056.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:56)
            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.io.FileNotFoundException: Jar does not contain plugin.yml
            ... 9 more
    21:32:38 [INFO] [ecoCreature] version {0.0.4c} is loading.
    21:32:38 [INFO] [ecoCreature] Please check your configuration file. Plugin disab
    led.
    21:32:38 [INFO] [ecoCreature] has been disabled!
    21:32:38 [INFO] [iConomy] Logging is currently disabled.
    21:32:39 [INFO] [iConomy] v4.63 (Kenzi) loaded.
    21:32:39 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    21:32:39 [INFO] [iConomyHealth] Permissions not found. Defaulting to Op.
    21:32:39 [INFO] [iConomyHealth] version 0.1.1 is enabled!
    21:32:39 [INFO] LocalShops: Permissions not found.
    21:32:39 [INFO] LocalShops: iConomy found.
    21:32:39 [INFO] LocalShops: Loaded 0 shop(s).
    21:32:39 [INFO] LocalShops: version 2.0.1b is enabled!
    21:32:39 [INFO] Lockette version 1.3.3 is being enabled!  Yay!
    21:32:39 [INFO] Lockette: Detected craftbukkit build [617] ok.
    21:32:39 [INFO] Lockette: Permissions plugin not detected, using ops file.
    21:32:39 [INFO] Lockette: Ready to protect your containers.
    21:32:39 [SEVERE] [mcMMO] Permissions isn't loaded, there are no restrictions.
    21:32:39 [INFO] mcMMO version 0.9.14 is enabled!
    21:32:39 [INFO] [Hawox's uQuest] Permission system not enabled. Disabling permis
    sion support.
    21:32:39 [INFO] [Hawox's uQuest] Loaded with Flatfile!
    21:32:39 [INFO] [Hawox's uQuest] v1.03 enabled! With 53 quests loaded!
    21:32:39 [INFO] [Hawox's uQuest] Successfully linked with iConomy.
    21:32:39 [INFO] Done (0.306s)! For help, type "help" or "?"
    >
     
  2. Offline

    Lokykun

    Hi the format was false, please use Notepad++ to write YAML files and test the code with a YAML parser.

    "- 'ecoCreature.Rewarding.Spawner" you forgot the second " ' "

    You don't set any inheritance.

    And many more.

    please read the Permission description, to learn how it's works.

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
     Guest:
        default: true
        info:
         prefix: ''
         suffix: ''
         build: false
        inheritance:
        permissions:
    
     Member:
        default: false
        info:
         prefix: ''
         suffix: ''
         build: true
        inheritance: guest
        permissions:
        - 'ecoCreature.Rewarding.Creeper'
        - 'ecoCreature.Rewarding.Skeleton'
        - 'ecoCreature.Rewarding.Zombie'
        - 'ecoCreature.Rewarding.Spider'
        - 'ecoCreature.Rewarding.PigZombie'
        - 'ecoCreature.Rewarding.Ghast'
        - 'ecoCreature.Rewarding.Slime'
        - 'ecoCreature.Rewarding.Giant'
        - 'ecoCreature.Rewarding.Chicken'
        - 'ecoCreature.Rewarding.Cow'
        - 'ecoCreature.Rewarding.Pig'
        - 'ecoCreature.Rewarding.Sheep'
        - 'ecoCreature.Rewarding.Squid'
        - 'ecoCreature.Rewarding.Spawner'
        - 'iConomyHealth.help'
        - 'iConomyHealth.heal'
        - 'iConomyHealth.list'
        - 'iConomy.payment'
        - 'iConomy.access'
        - 'iConomy.rank'
        - 'iConomy.list'
        - 'localshops.buysell'
        - 'localshops.manage'
        - 'localshops.create'
        - 'localshops.move'
        - 'mcmmo.skills.*'
    
     Moderator:
        default: false
        info:
         prefix: ''
         suffix: ''
         build: true
        inheritance:
            - member
        permissions:
        - 'iConomyHealth.hurt'
        - 'iConomyHealth.list'
        - 'iConomy.admin.stats'
        - 'iConomy.admin.account.create'
        - 'localshops.manage.owner'
        - 'localshops.create.free'
        - 'localshops.move.free'
        - 'localshops.reload'
    
     Admins:
        default: false
        info:
         prefix: ''
         suffix: ''
         build: true
        inheritance:
            - moderator
        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:
        Redhandjane:
         group: Admins
         permissions:
        Barknhots:
         group: Moderator
         permissions:
    
    this should work
     
  3. Offline

    shadow85

    Thank you.

    I was using Notepad++ but I've never worked with anything like this before. And thank you for explaining where I was going wrong, now I'm going to try to get this into my file without messing up the format lol.

    Yay! I moved it in safely! Again, thank you so much. I completely misunderstood inheritance

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
Thread Status:
Not open for further replies.

Share This Page