So I'm writing this skript where when a player dies, they get into spectator mode. After that, if they try to leave the region "spleef", the event gets canceled, so that they can't leave the region. Everything is working except the part where they can't leave the region. It gives an error saying "can't understand the event 'on region exit'"
Here is the code:
I also tried using %region% instead of %event-region% but I had no luck with that.
I even tried the following:
Any help would be appreciated
Edit: I have the latest versions of skript, WorldGuard and FAWE
Here is the code:
Code:
on region exit:
if "%event-region%" contains "spleef":
if {spleefgame} is true:
cancel event
stop
I also tried using %region% instead of %event-region% but I had no luck with that.
I even tried the following:
Code:
on region exit:
send "test" to player
Any help would be appreciated
Edit: I have the latest versions of skript, WorldGuard and FAWE