Solved If player is in world.

  • 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.
May 12, 2021
27
1
3
24
I am using "if player is in world "dropper":" and its not working. I have a multiverse world named "dropper".
Context:

on death:
if player is in world "dropper":
message "a"
teleport player to location {level}
 
Try this:


Code:
on death:
    if player is in world "dropper":
        teleport player to {dropperstart}
        cancel event
 
Try this:


Code:
on death:
    if player is in world "dropper":
        teleport player to {dropperstart}
        cancel event
Pretty sure, an "on dead" event can't be canceled. And it's the same he wrote, just with indication(which I hope he has in his original code) and a changed variable.
 
Pretty sure, an "on dead" event can't be canceled. And it's the same he wrote, just with indication(which I hope he has in his original code) and a changed variable.
I have noticed that it works without "if player is in world "dropper":", here are some other ways I have tried:

player is in world "dropper"
if player is in "dropper"
player is in "dropper"
if player is in world "dropper"
If "%world of player%" is "dropper":

Although none of them seem to work (to confirm indentations were present in the original post.) I have looked through most forum posts on the topic and can't seem to find syntax that works. I have the addons:

skQuery
skRayFall
TuSKe
 
Code:
on death of player:
    player's world is "dropper":
        send "a" to player
        teleport player to {level}

Requirements: Skript - SkQuery
 
Code:
on death of player:
    player's world is "dropper":
        send "a" to player
        teleport player to {level}

Requirements: Skript - SkQuery


Code:
on death of player:
    player's world is "dropper":
        send "a" to player
        teleport player to {level}
Doesn't work. No error, no message.

Code:
on death of player:
    send "a" to player
    teleport player to {level}
This works.
[doublepost=1628434566,1628433634][/doublepost]
Code:
on death of player:
    player's world is "dropper":
        send "a" to player
        teleport player to {level}

Requirements: Skript - SkQuery


I removed TuSKe and skRayFall and it still didn't work.
 
Status
Not open for further replies.