When a person checks the balance, writes that there are not enough funds, but at the same time the player's balance exceeds the required amount, the variable is the balance - I checked, I really need help!
Code:
command /buybussines [<text>]:
usage: &fИспользование: /buybussines &d(бизнес)
trigger:
if arg-1 is "Cafe":
if {_cafe1.owner} is not set:
set {player.balance::%uuid of player%} to placeholder "vault_eco_balance"
send "%{player.balance::%uuid of player%}%" to player
if {player.balance::%uuid of player%} >= 1500000:
execute console command "money take %player% 1500000"
execute console command "lp user %player% permission set cafe1.owned"
set {_cafe1.owner} to "%player%"
send "&a[!] &fВы успешно приобрели Кафетерий №1!" to player
execute console command "dh l set Cafe3 1 7 &fСтатус: &aКуплен! "
execute console command "dh l set Cafe3 1 6 &fВладелец: &7%player%"
broadcast "&9[НОВОСТИ] &fГражданин %player% выкупил бизнес Кафетерий №1!"
broadcast "&9[НОВОСТИ] &fПоздравим же его!"
else:
send "&c[!] &fУ вас недостаточно средств для покупки!" to player
else:
send "&c[!] &fБизнес уже куплен!" to player