So im making a RPG server and im making mines. I need a command that the player can execute only once
this is my code:
command /minetier buy:
permission: skript.minebuy1
trigger:
if {_hasBought::%uuid of player%} is not set:
if player's balance >= 10000:
remove 10000 from player's balance
execute console command "lp user %player% parent add mine1"
set {_hasBought::%uuid of player%} to true
send "Byl zakoupen Mine Tier 1!"
else:
send "Nemáš dostatek peněz na zakoupení Mine Tier 1."
this is my code:
command /minetier buy:
permission: skript.minebuy1
trigger:
if {_hasBought::%uuid of player%} is not set:
if player's balance >= 10000:
remove 10000 from player's balance
execute console command "lp user %player% parent add mine1"
set {_hasBought::%uuid of player%} to true
send "Byl zakoupen Mine Tier 1!"
else:
send "Nemáš dostatek peněz na zakoupení Mine Tier 1."