I don't know why it's not running. I want to create a whitelist, and this part of code must add players to it. If the player is already added, it mustn't add it, but if it's not added, it must add it.
It doesn't run.
Any ideas?
It doesn't run.
Any ideas?
code_language.skript:
if arg 1 is "add":
if arg 2 is set:
if {whitelist.list::*} contains arg 2:
send "&8[&f&lWhiteList&8] &a%arg 2% &7is already added to the whitelist."
else if {whitelist.list::*} doesn't contain arg 2:
add arg 2 to {whitelist.list::*}
send "&8[&f&lWhiteList&8] &7You have added &a%arg 2% &7to the whitelist."
else if arg 2 is not set:
send "&8[&f&lWhiteList&8] &7You must use &a/wl &aadd <player>&7."