Config file strange error

Discussion in 'Plugin Development' started by Sahee, Aug 25, 2014.

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

    Sahee

    Hello, here is my config file:
    Code:
    mysql:
        ip: rootroot.eu
        port: 3306
        database: test
        username: root
        password: root
    streak:
        resetStreakOnKilledByMonster: false
    elo:
        maxElo: 2800
        startingElo: 1200
    #if someone slain monster should monster Elo go down?
    #or if monster slain someone should monster elo go up?
        incOrDecMonsterElo: false
        useMonsterElo: false
    #with Higher Elo you will don't get elo for killing monsters
    #but if you will die you will lose much Elo!
    monsterElo:
        Zombie:
            elo: 600
            use: true
        PigZombie: #pigMan
            elo: 800
            use: true
        Slime:
            elo: 600
            use: true
        Skeleton:
            elo: 900
            use: true
        Silverfish:
            elo: 900
            use: true
        Creeper:
            elo: 1200
            use: true
        Spider:
            elo: 900
            use: true
        CaveSpider:
            elo: 1100
            use: true
        Enderman:
            elo: 1300
            use: true
        EnderDragon:
            elo: 2000
            use: true
        Blaze:
            elo: 1200
            use: true
        Wither:
            elo: 1800
            use: true
        Wolf:
            elo: 1000
            use: true
        Witch:
            elo: 1000
            use: true
    otherTypesofDeath:
        CONTACT: #cactus kill
            elo: 200
            use: true
        DROWNING:
            elo: 200
            use: true
        FALL:
            elo: 200
            use: true
        FIRE: #Tire tick or direct fire
            elo: 200
            use: true
        LAVA:
            elo: 200
            use: true
        SUFFOCATION:
            elo: 200
            use: true
        VOID:
            elo: 200
            use: true
    #COLOURS like: <RED>  <name>
    #ALOWED COLOURS: http://minecraft.gamepedia.com/Classic_server_protocol#Color_Codes
    #use Alternative Names! :)
    locales:
    #you can't use chat " : " ID
        infoAboutRanking: Kills {kills}, Deaths {deaths}, Streak {streak}, KD {kdratio}, Elo {elo}, Highest Streak {higheststreak}, Rank {rank}
        errorWhileDisplayingRanking: Error while displaying Ranking!
        killMessage: For that kill you gained {elo} elo!
    #you can still use other variables {kills} {deaths} {streak} {kdratio} {elo} {higheststreak} inside rankMessage! :) ITS INTELISENS
        rankingMessage: "{rank} {nickname} Elo {elo}"
        noPermissions: You don't have permissions to use that command! ({permission})
    With yaml parser its good but when im tying to launch my plugin im getting that error:
    Code:
    [21:46:10] [Server thread/ERROR]: [PvpStats] Cannot load configuration from jar
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in "<string>", line 88, column 5:
            infoAboutRanking: Kills {kills}, ...
            ^
    expected <block end>, but found FlowMappingStart
    in "<string>", line 92, column 28:
            rankingMessage: {rank} {nickname} Elo {elo}
                                  ^
    
    Solved space after PigZombie: and in other lines if someone have same errors ;)

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

Share This Page