so basically I'm new to using skript, and I've been wondering how i could fix the problem of this. For example, I would like 5 ranks to have chat format, but I would always get an error. How can I fix this? Here's my code. I'm also using Lucky Perms to do this.
on chat:
if player has permission "group.vip"
set the chat format to "&l&a[Vip]" &a%player%: &f%message%
if player has permission "group.mod":
set the chat format to "&l&2[Mod] &2%player%: &f%message%"
else:
set the chat format to "&7%player%: %message%"
if player has permission "group.admin":
set the chat format to "&l&4[Admin] &4%player%: &f%message%"
if name of player is "Player1":
set the chat format to "&l&4[Owner] &l%player%: &f%message%"