idk if to put in skript or help but i want to make a shop gui with skript,essentials, and vault and i want to make sure the players have enough money when they try to buy and this is my current
if index of event-slot is 15:
if player's balance is greater than or equal to 40:
if player has enough space for 12 arrow:
execute console command "eco take %player% 40"
give 12 arrow with name "&fArrow"
with the current code it doesnt look at the balance and goes to negative numbers and doesnt send any when reloading errors just something about empty configuration section. if there are any things that i am doing wrong please help with it and thank you for reading this