On Region Exit isn't detecting players properly.

  • 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!

Status
Not open for further replies.

zaaaaak

VIP
Aug 8, 2017
8
0
1
I am running the newest version of Skript on spigot 1.14.4

All of my regions work.

Code:
on region exit:
    if "%region%" contains "Spleef1":
        remove 1 from {integerplayingevent}
        broadcast "&6&lEVENTS &8» &a&n&o%player% &7has left the &a&n&oSpleef&f &7event. &7(%{integerplayingevent}%&7)" in world("spleef")
        set {spleef.%player%} to false
        set gamemode of player to Survival

What happens is when the player walks out of the region or switches worlds, Skript recognizes they left the region and the code runs normally. BUT, when they leave the server, Skript only recognizes they left when they join the server back. Therefore running the code when they join back only.

I'm simply looking for any alternatives or a fix for this.
 
Status
Not open for further replies.