region bug with skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

If you just tested it out, there was an indent error. ( My Bad : P )
 
why this error?

There's no world in an on region enter/leave event (lucky.sk, line 2121: region is spawn')
 
Okay, have I replaced well the values to change?

on region enter:
region is spawn
set {boolean} to true

on region exit:
region is spawn
set {boolean} to false

command /region:
trigger:
if {boolean} is true:
send "&aHello!" to player
else:
send "&cNope..." to player

because if this code is good, then the problem still exists
 
Okay, have I replaced well the values to change?

Code:
on region enter:
    region is spawn
    set {boolean} to true

on region exit:
    region is spawn
    set {boolean} to false

command /region:
    trigger:
        if {boolean} is true:
            send "&aHello!" to player
        else:
            send "&cNope..." to player
Did you test it?
 
there are no errors--it simply tells me "&cNope..." (i.e., the skript response if I am neither in the region spawn, nor spawnender)
It basically gives me "&cNope..." in whatever region I'm in