Cannot use custom give command
Koyorice opened this issue · 0 comments
Confirmation
- I have read the documentation.
- I have read the FAQ.
Description
I think it is because of the repeated ' and " in the instruction that caused such an error
gift.yml:
menu-settings:
name: '&b12/24~26會出現小彩蛋,請在期間內尋找'
rows: 1
auto-refresh: 5
聖誕節禮物:
LORE:
- 聖誕節是12/25,記得上線喔!!
POSITION-X: 1
POSITION-Y: 1
NAME: '&a領取聖誕節限量禮物!!'
ACTIONS: - 'console: give {player} leather_chestplate{Damage:80,HideFlags:3,display:{Name:'[{"text":"","italic":false},{"text":"可"},{"text":"燃","color":"red"},{"text":"聖誕節禮物"}]',Lore:['[{"text":"","italic":false},{"text":"星星村","color":"yellow"},{"text":"的"},{"text":"聖誕節","color":"green"},{"text":"限量禮物","color":"white"},{"text":"!!"}]','[{"text":"","italic":false},{"text":"有一種冷","color":"aqua"},{"text":",叫做"},{"text":"服主","color":"yellow"},{"text":"覺得你會冷,","color":"aqua"},{"text":"不喜歡你就","color":"red"},{"text":"燒掉吧","color":"red"},{"text":"..."}]']}} 1'
MATERIAL: sweet_berries
PERMISSION-MESSAGE: 你已經領取過了!!
PERMISSION: 'starstar.gift'
KEEP-OPEN: true
Execute cc reload command output:
[ChestCommands] Encountered 1 error(s) on load:
- Error while initializing config file "menu/gift.yml": invalid YAML syntax. Details:
while parsing a block mapping
in 'string', line 9, column 3:
LORE:
^
expected , but found '['
in 'string', line 15, column 85:
... e:80,HideFlags:3,display:{Name:'[{"text":"","italic":false},{"te ...
^
[週二, 14. 12月 2021 16:57:28 TST INFO] [ChestCommands] Plugin reloaded with 1 error(s).
Chest Commands version
ChestCommands version 4.0.3
Additional information
No response