Problem/Bug YAML Parser? How to fix?

Discussion in 'Bukkit Help' started by nauaf101, Dec 14, 2016.

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

    nauaf101

    Hello Bukkit,

    I am unable to fix this nor do I know where the problem is at. I'd like some assistance towards this. I've used many YAML Validators and none could help me out. Thanks!


    Code:
    #-----------------------------------------------------------------------------------------------------------#
    #                              MyCommand Commands config file (last update v5.3.0)                            #
    #                                                                                                            #
    #  BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example        #
    #                                                                                                            #
    #    How to make a command :    (See an example command below)                                                    #
    #        For first, put your command name on first line                                                      #
    #        Now put your command_line name after the "command:" line. Don't forget the '/' before your command.    #
    #        So, now select your command type from a predefined list putting it after "type" line                #
    #    COMMAND TYPE LIST :                                                                                        #
    #        TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT            #
    #        ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUN_CONSOLE_RANDOM , SPOUT_TEXT                    #
    #       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION        #
    #        BAR_API_TEXT , BAR_API_BROADCAST_TEXT , CALL_URL, TITLE, BROADCAST_TITLE, ACTION_BAR                #
    #                                                                                                            #
    #    If your command is "TEXT" type, you can put multiple line of text below this parameter                    #
    #    You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list    #
    #    For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list                #
    #    Set delay time with delaytimer: 5 (5 = seconds) |                                                         #
    #   If you are using the Vault plugin, you can put the "cost: 123.0" with this line.                         #
    #    You can customize your permission node by placing "permission-node:" field in a command                    #
    #    Also,you can change the permission error message with "permission-error:"                                #
    #   Custom error-message for invalid args ,put "error-message:" line in a command.                            #
    #   You can use itemcost : 'ID:AMOUNT' for set a cost with items.                                             #
    #   Register REAL commands putting "register: true" below the command.                                         #
    #   With register commands you can use the "tab_completer: - Hi - Hello!"                                    #
    #   For Scripts and more features, find more on the bukkitdev page                                            #
    #-----------------------------------------------------------------------------------------------------------#
    ranks:
      command: /ranks
      type: TEXT
      text:
       - '&b B &fto &bC  &6Cost: &0$&a15000'
    - '&bC &fto &bD  &6Cost: &0$&a30000'
    - '&bD &fto &bE  &6Cost: &0$&a1000000'
    - '&bE &fto &bF  &6Cost: &0$&a2000000'
    - '&bF &fto &bG  &6Cost: &0$&a1350000'
    - '&bG &fto &bH  &6Cost: &0$&a1750000'
    - '&bH &fto &bI  &6Cost: &0$&a2350000'
    - '&bI &fto &bJ  &6Cost: &0$&a2850000'
    - '&bJ &fto &bK  &6Cost: &0$&a3650000'
    - '&bK &fto &bL  &6Cost: &0$&a4850000'
    - '&bL &fto &bM  &6Cost: &0$&a5850000'
    - '&bM &fto &bN  &6Cost: &0$&a9850000'
    - '&bN &fto &bO  &6Cost: &0$&a11850000'
    - '&bO &fto &bP  &6Cost: &0$&a12850000'
    - '&bP &fto &bQ  &6Cost: &0$&a14850000'
    - '&bQ &fto &bR  &6Cost: &0$&a15850000'
    - '&bR &fto &bS  &6Cost: &0$&a14850000'
    - '&bS &fto &bT  &6Cost: &0$&a18850000'
    - '&bT &fto &bU  &6Cost: &0$&a24850000'
    - '&bU &fto &bV  &6Cost: &0$&a28850000'
    - '&bV &fto &bW  &6Cost: &0$&a34850000'
    - '&bW &fto &bX  &6Cost: &0$&a39850000'
    - '&bX &fto &bY  &6Cost: &0$&a100000000'
    - '&bY &fto &bZ  &6Cost: &0$&a120000000'
    - '&bZ &fto &bFree &6Cost: &0$&a200000000'
      permission-required: false
      permission-node: mycommand.cmd.dice
      permission-error: "&a$player! , &2You can't use this command!"
     
  2. Offline

    Zombie_Striker

    @nauaf101
    The first line under the "text" path has the correct indentation. The rest do not. Add two spaces to all the other values in the list.
     
  3. Offline

    nauaf101

    Oh, let me try. @Zombie_Striker

    I honestly feel so dumb. @Zombie_Striker

    Thanks alot.

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

Share This Page