1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved If player is in world.

Discussion in 'Skript' started by clqrifiedwithaQ, Aug 7, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    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}
     
  2. xCraweL

    xCraweL Member

    Joined:
    Aug 7, 2021
    Messages:
    3
    Likes Received:
    0
    Try this:


    Code (Text):
    1. on death:
    2.     if player is in world "dropper":
    3.         teleport player to {dropperstart}
    4.         cancel event
     
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    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.
     
  4. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    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
     
  5. WilliamAfton

    WilliamAfton New Member

    Joined:
    Jul 26, 2021
    Messages:
    5
    Likes Received:
    1
    Code (Text):
    1. on death of player:
    2.     player's world is "dropper":
    3.         send "a" to player
    4.         teleport player to {level}
    Requirements: Skript - SkQuery
     
  6. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1

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

    Code (Text):
    1. on death of player:
    2.     send "a" to player
    3.     teleport player to {level}
    This works.
    --- Double Post Merged, Aug 8, 2021, Original Post Date: Aug 8, 2021 ---

    I removed TuSKe and skRayFall and it still didn't work.
     
  7. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    try broadcast "%world of player%"
     
    clqrifiedwithaQ likes this.
  8. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    Ok thanks that fixed I was in a different world....
     
Thread Status:
Not open for further replies.

Share This Page

Loading...