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!

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

Solved Skript (Respawn at World Spawn_

Discussion in 'Requests' started by SaphoGaming, Mar 3, 2020.

  1. SaphoGaming

    SaphoGaming New Member

    Joined:
    Mar 2, 2020
    Messages:
    6
    Likes Received:
    0
    I've searched the whole internet for a skript that, when you die it respawns you at the worlds spawn and not at the hub. I have multiple worlds and when people die in kitpvp they respawn at the hub which is inconvenient.
    Please send me a working skript that could do that please.

     
  2. Best Answer:
    Post #4 by Lego_freak1999, Mar 5, 2020
  3. PuchiGFX

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    246
    Likes Received:
    5
    I did this months ago:
    Code (Text):
    1. import:
    2.     org.bukkit.Location
    3.  
    4. on respawn:
    5.     set {_l} to player's world.getSpawnLocation()
    6.     event.setRespawnLocation({_l})
    You need skript-mirror for this
     
  4. SaphoGaming

    SaphoGaming New Member

    Joined:
    Mar 2, 2020
    Messages:
    6
    Likes Received:
    0
    Will try it thanks
    --- Double Post Merged, Mar 5, 2020, Original Post Date: Mar 5, 2020 ---
    I'm using minehut unfortunately and there's no skript mirror :emoji_frowning:(
     
  5. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    are u talking about instand respawn so no respawn button or wenn they press respawn?
    --- Double Post Merged, Mar 5, 2020 ---
    also: https://skriptlang.github.io/Skript/expressions.html#ExprRespawnLocation
    --- Double Post Merged, Mar 5, 2020 ---

    Whoops didn't see this was request:


    Code (Text):
    1. on respawn:
    2.     set {_loc} to the spawn location of player's world
    3.     set respawn location to {_loc}
    4.  
     
  6. SaphoGaming

    SaphoGaming New Member

    Joined:
    Mar 2, 2020
    Messages:
    6
    Likes Received:
    0
    Thanks it worked Lego_Freak1999
     
  7. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    Np
     

Share This Page

Loading...