Jello! I am working on a trail system and I was working on the /buytrail command. The skript has been succesfully reloaded but it doesn't work. here is the skript
I keep getting the "toobroke" message while my {points::%player%} are 30'
EDIT: I got some help on discord and it turns out I just had to change the /setpoints command to number and not text
Code:
command /buytrail <text> <player>:
permission: "buytrail.*"
trigger:
if arg 1 is "lime":
if {boughtlime.%arg 2%} is false:
if {points::%arg 2%} >= 10:
send "&6Bought &alime trail&6!" to arg 2
subtract 10 from {points::%arg 2%}
set {boughtlime.%arg 2%} to true
set {limetrailequiped.%arg 2%} to true
else:
send "toobroke" to arg 2
if {boughtlime.%player%} is true:
if {limetrail.equiped.%arg 2%} is false:
send "&6Equipped &alime trail&6!" to arg 2
set {limetrail.equiped.%arg 2%} to true
else:
send "&6Unequipped &alime trail&6!" to arg 2
set {limetrail.equiped.%arg 2%} to false
EDIT: I got some help on discord and it turns out I just had to change the /setpoints command to number and not text
Last edited: