Code:
command /autorank:
trigger:
set {_smp} to placeholder "statistic_minutes_played"
send "%{_smp}%"
if {_smp} is greater than or equal to 10000:
execute console command "lp user %player% permission set deluxetags.tag.Citizen"
execute console command "bbroadcast &bCongratulations! &b%player% has reached 10,000 minutes played and received his new Citizen tag!"
log "%Player%-Citizen Tag" to "Autorank.Log"
Upon typing the command, it just displays your minutes played in chat, as it should. But the whole IF event isn't processed. Been trying to work this all day, and unsure how it should be done. Thanks!