I'm trying to make a sethome skript that limits the number of sethomes you can have, by using permissions. For some reason the limit part of it wont work, when the rest of it is functioning fine. No errors are showing in chat. Can anyone help out and tell me what i did wrong/how i fix it?
command /sethome <text>:
trigger:
if {homes::%uuid of player%::%arg-1%} is set:
send "&cYou have already set a home to &3%arg-1%&r"
if {homes::%uuid of player%::%arg-1%} isn't set:
set {homes::%uuid of player%::%arg-1%} to location of player
add arg-1 to {%uuid of player%.homeList::*}
send "&aSet a home to &3%arg-1%&r"
if {sethomes::%uuid of player%} is 3:
player does not have permission "4th.house":
message "&cYou cannot set more than 3 homes! Buy more in &3/shop"
if {sethomes::%uuid of player%} is 4:
player does not have permission "5th.house":
message "&cYou cannot set more than 4 homes! Buy more in &3/shop"
if {sethomes::%uuid of player%} is 5:
player does not have permission "6th.house":
message "&cYou cannot set more than 5 homes! Buy more in &3/shop"
if {sethomes::%uuid of player%} is 6:
player does not have permission "vip":
message "&cYou cannot set more than 6 homes! Get 1 more with &6VIP &3/buy"
if {sethomes::%uuid of player%} is 7:
message "&cYou cannot set more than 7 homes!"