Chest Commands

Chest Commands

1M Downloads

invalid YAML syntax for a correct Command

bye311 opened this issue ยท 1 comments

commented

Description

The Plugin / YAML have problems with the syntax of the follow command.
The execution of the minecraft:give command works normal in the console and ingame.

How to reproduce

In the .yml of the Menu

ACTIONS:

  • 'console: minecraft:give @p wooden_sword{display:{Name:'[{"text":"Test1","italic":false}]',Lore:['[{"text":"Test2","italic":false}]']},Enchantments:[{id:knockback,lvl:1},{id:sharpness,lvl:2},{id:unbreaking,lvl:1}]} 1'

Platform

  • Server version (output of /version): 2991-Spigot-018b9a0-f3f3049 (MC: 1.16.5) 1.16.5-R0.1-SNAPSHOT
  • Chest Commands version (check with /cc): 4.0.3

Additional context

[14:50:28] [Server thread/INFO]: 1) Error while initializing config file "menu\HecklerKoch.yml": invalid YAML syntax. Details:
[14:50:28] [Server thread/INFO]: while parsing a block mapping
[14:50:28] [Server thread/INFO]: in 'string', line 73, column 3:
[14:50:28] [Server thread/INFO]: ACTIONS:
[14:50:28] [Server thread/INFO]: ^
[14:50:28] [Server thread/INFO]: expected , but found '['
[14:50:28] [Server thread/INFO]: in 'string', line 74, column 61:
[14:50:28] [Server thread/INFO]: ... @p wooden_sword{display:{Name:'[{"text":"Test1","italic":false} ...
[14:50:28] [Server thread/INFO]: ^

commented

You're using single quotes inside the command string. They must be escaped by using \' instead of '