The problem is: when the list variable {itdisabled::*} is empty and I add an item to it, its just works fine
but if I add more item into it, it doesn't work anymore it's just adding the item to the variable over and over, and not checking if its in the variable
but if I add more item into it, it doesn't work anymore it's just adding the item to the variable over and over, and not checking if its in the variable
code_language.skript:
command /it [<text>] [<item>]:
trigger:
if arg 1 is "add":
if arg 2 is not set:
message "{@it}/it help"
else:
if {itdisabled::*} contains arg 2:
message "&a%arg 2% &7already disabled."
else:
add arg 2 to {itdisabled::*}
message "&a%arg 2% &7disabled."