Hello! I'm writing a skript which i'm trying to compare two variables are same or not. It's something like that:
But it's not working at all. I'm trying to compare {warnings.%arg-1%} with {warning.chances} if they are same or not. How can i do that?
Code:
if {warnings.%arg-1%} contains {warning.chances}:
wait 5 tick
set {ban.command} to yaml value "PunishmentSK.Punish.Command" from file "plugins\PunishmentSK\config.yml"
make console execute "%{ban.command}% %arg-1%"
else:
add 1 to {warnings.%arg-1%}
But it's not working at all. I'm trying to compare {warnings.%arg-1%} with {warning.chances} if they are same or not. How can i do that?