Detecting the Past World on World Change

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

    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.

Skzen

Member
Jun 15, 2017
15
1
0
code_language.skript:
on player world change:
    wait 1 tick
    player is in "world"
    broadcast "&8[&ePD3&8] &e%player% &chas left the Warzone."

How can I make it so it detects the past world on world change so this doesn't show up when people leave the nether or end but when they actually leave the "warzone" world?

Thanks
[doublepost=1500090411,1499753417][/doublepost]bump
 
Tested. Had to use the nether since I don't have a warzonex3 if you entered the "warzone" it sets the variable to true to remember you were in it. enter any other world, if you had that variable set to true, and it will broadcast the message and reset your variable to false
code_language.skript:
on player world change:
    wait 1 tick
    if world is "world_nether":
        set {warzone.%player%} to true
        broadcast "Player entered the warzone"
        stop
    else:
        if {warzone.%player%} is true:
            set {warzone.%player%} to false
            broadcast "Player left the warzone"
 
Status
Not open for further replies.