Help with Permissions.yml

Discussion in 'Bukkit Help' started by Colonel_Collin, Nov 8, 2016.

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

    Colonel_Collin

    Hello everyone. I need some help with my permissions.yml file. I have CraftBukkit installed on my server. But when I launch the server....it tells me that "mapping values aren't allowed here. I have done some research but have found nothing that could help me. My file is below. The ERROR is HERE:
    5:45:49 PM
    CONSOLE:
    WARN]: Server permissions file permissions.yml is not valid YAML: mapping values are not allowed here
    5:45:49 PM
    CONSOLE:
    'reader', line 28, column 12:
    5:45:49 PM
    CONSOLE:
    prefix: '&6[&8Player&6]&7'
    5:45:49 PM
    CONSOLE:
    ^
    Thanks!

    Code:
    groups:
       Default:
        default: true
        permissions:
        - essentials.spawn
        - essentials.tpa
        - essentials.tpaccept
        - essentials.msg
        - essentials.mail.*
        - essentials.ptime
        - essentials.balance
        - essentials.pay
        - essentials.signs.use.*
        - essentials.afk
        - essentials.afk.auto
        - essentials.ingnore
        - essentials.help
        - essentials.msg
        - essentials.rules
        - essentials.seen
        - essentials.ping
        - essentials.sethome
        - essentials.tpahere
        - essentials.tpdeny
        - essentials.warp.*
        - essentials.warp.list
        - essentials.delhome
         prefix: '&6[&8Regular&6]&7'
         suffix: ''
       Donator:
        default: false
        inherit:
        - Default
        permissions:
        - essentials.feed
        - essentials.heal
        - essentials.hat
        #I recommend adding more, like kits or other things!
         prefix: '&6[&3VIP&6]&c'
       Mod:
        defualt: false
        inherit:
        - Default
        permissions:
        - essentials.kick
        - essentials.socialspy
        - essentials.ban
        - essentials.jails
        - essentials.tempban
        #Recommended: Keep it so that mods can not un-ban, leave that to admins
        prefix: '&6[&9Mod&6]&r'
        suffix: ''
       Admin:
       default: false
       inherit:
       - Mod
       - Default
       - Donator
        permissions:
        - essentials.unban
        - essentials.tp
        - essentials.tpo
        - essentials.fly
        - essentials.fly.safelogin
        - essentials.vanish
        - essentials.vanish.see
        - essentials.weather
        - essentials.spawn.others
        - essentials.setwarp
        - essentials.tp.others
        - essentials.chat.*
        - essentials.joinfullserver
         prefix: '&6[&5Admin&6]&d'
         suffix: ''
       Owner:
        default: false
        inherit:
        - Admin
        permissions:
        - essentials.*
         prefix: '&6[&bOwner&6]&9'
         suffix: ''
    users:
     
  2. Offline

    oceantheskatr

    So many missing spaces, spaces where they shouldn't be, and things spelt wrong. I'm 99.9% sure "inherit" should be "inheritance", but if not then change it back. Your spacing was absolutely horrid, so please please learn correct formatting for YAML files. In the mean time, I'd like to suggest sticking to modifying your permissons.yml with in-game commands which can be found here:
    https://github.com/PEXPlugins/PermissionsEx/wiki/Commands

    Here is your fixed permissions.yml:
    http://pastebin.com/LeAN1PA8
     
  3. Offline

    Colonel_Collin

    Ok thanks. The work wasn't done by me. I found it elsewhere.

    There are more errors now than there were before.

    12:34:51 PM
    CONSOLE:
    WARN]: Server permissions file permissions.yml is not valid YAML: while scanning a simple key
    12:34:51 PM
    CONSOLE:
    'reader', line 83, column 1:
    12:34:51 PM
    CONSOLE:
    RAW Paste Data
    12:34:51 PM
    CONSOLE:
    ^
    12:34:51 PM
    CONSOLE:
    find expected ':'
    12:34:51 PM
    CONSOLE:
    'reader', line 85, column 1:
    12:34:51 PM
    CONSOLE:
    groups:
    12:34:51 PM
    CONSOLE:
    ^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 8, 2016
  4. Offline

    oceantheskatr

    Have you edited the file since I fixed it? In the paste I posted there are only 82 lines, and the console is saying there's an error on line 83.\
    Btw

    1. Mod:
    2. defualt: false

    Default is spelt incorrectly, fix that while you're at it.
     
  5. Offline

    Colonel_Collin

    I have not created another line in the code. What are you trying to say when you point out Mod and the "default"?

    And I just noticed that I accidentally copied the RAW paste data.....

    EDIT...AGAIN: My server just started without any warn messages!! NOTHING about the yml! YAY!
     
  6. Offline

    oceantheskatr

    "default" is spelt incorrectly.
     
Thread Status:
Not open for further replies.

Share This Page