command /sektory [<text="gui">]:
trigger:
argument 1 is "gui":
open chest with 1 rows named "Sektory" to player
format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
argument 1 is "execute":
subtract 100000 from player's account
execute console command "pex user %player% group set B"
tak wyglada moj kod i ma byc tak ?
command /sektory [<text="gui">]:
trigger:
argument 1 is "gui":
open chest with 1 rows named "Sektory" to player
format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
argument 1 is "execute":
subtract 100000 from player's account
execute console command "pex user %player% group set B"
if player's balance is less than 100000:
else:
send "&cNie masz tyle pieniedzy!"
bo jak tak mam to wyskakuje blad