#Do the commands in this section run in order or simultaneously?

1 messages · Page 1 of 1 (latest)

uncut sonnet
#

I'm using the following configuration in click_commands:

click_commands:
  - '[console] luckperms user %player_name% permission set deluxetags.tag.argentina'
  - '[sound] entity_player_levelup'
  - '[takemoney] 2000'
  - '[takeexp] 15L'
  - '[console] essentials:clear %player_name% diamond 12'
  - '[message] &a¡Has comprado el tag &bᴀ&fʀ&bɢ&a!'
  - '[player] tags select argentina'
  - '[refresh]'

My question is:
Do the commands execute all at the same time, or do they run in the order they are listed? For example, does the first command (luckperms user %player_name% permission set deluxetags.tag.argentina) run first, and then the others follow?

plush moth
#

they run in order, though LuckPerms' commands are asynchronous, so they can get executed in the wrong order

#

you can add a delzy to the refresh action to fix that

#

- "[refresh]<delay=5>"

#

(it's in ticks)