I'm new to skript and trying to make a basic plugin to learn, I'm trying to make it so that it detects if a variable is a certain value. I've done it like this:
command selectbuff:
if "{%player's uuid%.gotbuff}" is set to "Selected":
stop
else:
my code blah blah blah
But when I reload my skript, I get this error message:
Unexpected entry 'if "{%player's uuid%.gotbuff}" is set to "Selected"'. Check that it's spelled correctly, and ensure that you have put all code into a trigger.
Can someone help?
command selectbuff:
if "{%player's uuid%.gotbuff}" is set to "Selected":
stop
else:
my code blah blah blah
But when I reload my skript, I get this error message:
Unexpected entry 'if "{%player's uuid%.gotbuff}" is set to "Selected"'. Check that it's spelled correctly, and ensure that you have put all code into a trigger.
Can someone help?