1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Error "yaml_parse_file" on KitUI

Discussion in 'Plugin Help' started by A354-PH, Oct 19, 2018.

  1. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    Code:
    11:33:54[Server thread/NOTICE]:  [KitUI] Enabled! - By Infernus101
    
    11:33:54[Server thread/CRITICAL]:  ErrorException: "yaml_parse_file(): parsing error encountered during parsing: did not find expected key (line 93, column 14), context while parsing a block mapping (line 74, column 3)" (EXCEPTION) in "KitUI.phar/src/Infernus101/KitUI/Main" at line 88
    
    11:33:54[Server thread/DEBUG]:  #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string yaml_parse_file(): parsing error encountered during parsing: did not find expected key (line 93, column 14), context while parsing a block mapping (line 74, column 3), string phar:///home/minecraft/plugins/KitUI.phar/src/Infernus101/KitUI/Main.php, integer 88, array Array())
    
    11:33:54[Server thread/DEBUG]:  #1 KitUI.phar/src/Infernus101/KitUI/Main(88): yaml_parse_file(string /home/minecraft/plugin_data/KitUI/kits.yml)
    
    11:33:54[Server thread/DEBUG]:  #2 KitUI.phar/src/Infernus101/KitUI/Main(31): Infernus101\KitUI\Main->configFixer()
    
    11:33:54[Server thread/DEBUG]:  #3 src/pocketmine/plugin/PluginBase(108): Infernus101\KitUI\Main->onEnable()
    
    11:33:54[Server thread/DEBUG]:  #4 src/pocketmine/plugin/PluginManager(566): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
    
    11:33:54[Server thread/DEBUG]:  #5 src/pocketmine/Server(1918): pocketmine\plugin\PluginManager->enablePlugin(Infernus101\KitUI\Main object)
    
    11:33:54[Server thread/DEBUG]:  #6 src/pocketmine/Server(1904): pocketmine\Server->enablePlugin(Infernus101\KitUI\Main object)
    
    11:33:54[Server thread/DEBUG]:  #7 src/pocketmine/Server(1698): pocketmine\Server->enablePlugins(integer 1)
    
    11:33:54[Server thread/DEBUG]:  #8 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/, string /home/minecraft/plugins/)
    
    11:33:54[Server thread/DEBUG]:  #9 /home/minecraft/pocketmine.phar(1): require(string phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine.php)
    
    11:33:54[Server thread/INFO]:  Disabling KitUI v1.3.0
    
    11:33:54[Server thread/NOTICE]:  [KitUI] Disabled! - By Infernus101
    How to fix this?
     
  2. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Copy contents of
    /home/minecraft/plugin_data/KitUI/kits.yml
    To
    https://jsonlint.com
    It will tell you whats wrong
     
    Awzaw likes this.
  3. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    Not working :/
     
  4. shabzz102

    shabzz102 Spider

    Messages:
    9
    GitHub:
    shabzz102
    There is something wrong in the config.yml check it. Or send code here
     
  5. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    What do you mean by not working? You don't understand the error message?
    if you want us to fix it for you, please post the contents of that file
     
  6. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    Code:
    ---
    # Players can't get another kit till they die
    one-kit-per-life: false
    # Players can claim another kit if they relog(only if one-kit-per-life is true)
    reset-on-logout: false
    # Start adding items from the first slot of inventory no matter what, will delete the present item at slot
    start-from-first: false
    # Clears player inventory before adding the kit
    clear-inventory: false
    # Clears player effect(s) before adding the kit
    clear-effect: false
    # Text on sign for kit form (case-insensitive)
    text-on-sign: "§e§lPixel§bBE §cKits!"
    ...
    Heres my config.yml and heres my kits.yml
    Code:
    starter:
      # Format: "id:damage:count:name:ench_name:ench_level"
    
      # If you want only custom name (no enchantments): "id:damage:count:name"
    
      # If you don't want enchantments or custom name: "id:damage:count"
    
      # If you want only enchantments (no custom name): "id:damage:count:DEFAULT:ench_name:ench_level" -- you have to put DEFAULT in the name field
    
      # If you want more than one enchantment just do: "id:damage:count:name:ench1_name:ench1_level:ench2_name:ench2_level"
      # or "id:damage:count:DEFAULT:ench1_name:ench1_level:ench2_name:ench2_level" if you don't want a custom item name
    
      # Please note: You have to write numeric IDs
      items:
      - "260:0:10"
      - "267:0:1:Sword Name:sharpness:3:knockback:1"
      helmet: "302:0:1:§e§lStarter Helmet"
      chestplate: "303:0:1:§e§lStarter Chesplate:protection:1"
      leggings: "304:0:1:§e§lStarter Leggings"
      boots: "305:0:1:§e§lStarter Boots"
    
      commands: # {player} will get replaced by player's name
      - "tell {player} Starter Kit claimed!"
    
      cooldown:
        hours: 00
        minutes: 10
    
      # Format: "name:time:amplifier"
      # Time is in seconds
      effects:
     
      #Kit name to show on the menu, you can use color symbol '§'
      kit-name: "§e§lStarter Kit!"
    
      # Add a cost for the kit. Compatible with EconomyAPI only
      # Put 0 if you want the kit to be free
      money: 0
     
      #Enter image url for the kit. png image. The image will be shown in kit main menu if its compatible.
      image-url: "https://minecraft.gamepedia.com/media/minecraft.gamepedia.com/f/f2/Stone_Sword.png?version=ede6f1623f23eb3959b3d5287dc54bb0"
    
      # Info to show when selected a Kit in UI form
      info: "This kit is for Starters! Cost:0$"
    assassin:
    
      items:
      - "322:0:3"
      - "276:0:1:§e§lAssassin Sword:sharpness:3"
      helmet: "298:0:1:Assassin Helmet"
      chestplate: "299:0:1:Assassin Chestplate"
      leggings: "300:0:1:Assassin Leggings"
      boots: "301:0:1:§e§lAssassin Boots"
    
      commands:
      - "tell {player} Assassin Kit claimed!"
    
      cooldown:
        hours: 00
        minutes: 30
    
      effects:
      - "speed:120:2"
     
      kit-name: "§c§lAssassin Kit!"
    
      money: 150
     
      image-url: "https://minecraft.gamepedia.com/File:Sword_diamond_TextureUpdate.png"
    
      info:  "Assassin Kit! Cost: 150$"
    cinix:
    
      items:
      - "276:0:1:§b§lCinix Ultimate Sword:sharpness:1"
      - "261:0:1:§b§lCinix Ultimate Bow"
      - "262:0:16"
      - "322:0:3"
      helmet: "306:0:1:§b§lCinix Helmet"
      chestplate: "307:0:1:§b§lCinix Chestplate:protection:1" 
      leggings: "308:0:1:§b§lCinix Leggings"
      boots: "309:0:1:§b§lCinix Boots"
     
      commands:
      - "tell {player} §b§lCinix Kit Claimed!
     
      cooldown:
        hours: 01
        minutes: 00
        
      effects:
     
      kit-name: "§b§lCinix Kit!"
     
      money: 300 
     
      image-url: "https://cdn.discordapp.com/attachments/499522056401059850/500454838602301441/20180320_184437.png"
     
      info: "Cinix Kit! Only for Cinix Members! Cost: 300$"
    ...
     
  7. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    omg xD, it legit took me 15 mins to find it
    PHP:
      commands:
      - 
    "tell {player} §b§lCinix Kit Claimed!
    you forgot to add " at the end, put that please
    PHP:
      commands:
      - 
    "tell {player} §b§lCinix Kit Claimed!"
     
  8. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    at your line 88 I guess.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.