#Command long breaks config

1 messages · Page 1 of 1 (latest)

thin cedar
#

Hey im trying to have console run a long command but it goes to 2nd line how can i fix this so the command runs right but doesnt break config?

#
    display_name: '&fInvisible Item Frame'
    hide_attributes: true
    material: item_frame
    slot: 38
    lore:
    - '&7This item is one-time use'
    - ''
    - "&#d3fcd1&lCost: &a$2,000"
    - '&#fca639&lLeft-Click &#fca639to Purchase'
    left_click_requirement:
      requirements:
        Money_Req:
          type: has money
          amount: 2000
          deny_commands:
          - '[message] &6Shop &8> &7You need &c$2,000 &fto buy &c1 x Spire Armor Trim&f.'
        Inv_req:
          hasRoom: # Check user has enough inventory slots
          type: '>='
          input: '%player_empty_slots%'
          output: '1'
          deny_commands:
          - '[message]&cYou need at least&#f8e242 1 free inventory slot &cto buy this!'
          - '[close]'
    left_click_commands:
    - '[console] eco take %player_name% 100'
    - '[console] minecraft:give %player_name% item_frame{EntityTag:{Invisible:1b},display:{Name:'[{"text":"Invisible Item Frame","italic":false}]',Lore:['[{"text":"This item is one-time use","italic":false}]']}} 1'
    - '[message] &6Shop &8> &fYou bought &a1 x Invisible Item Frame &ffor &a$100&f.'```
clever junco
#

the problem is not that it goes on the next line, but because you didn't escaped the quotes