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

SaphoGaming

New Member
Mar 2, 2020
6
0
0
27
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.
 
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.
I did this months ago:
Code:
import:
    org.bukkit.Location

on respawn:
    set {_l} to player's world.getSpawnLocation()
    event.setRespawnLocation({_l})
You need skript-mirror for this
 
Will try it thanks
[doublepost=1583400487,1583400110][/doublepost]I'm using minehut unfortunately and there's no skript mirror :emoji_frowning:(
 
Will try it thanks
[doublepost=1583400487,1583400110][/doublepost]I'm using minehut unfortunately and there's no skript mirror :emoji_frowning:(
are u talking about instand respawn so no respawn button or wenn they press respawn?
[doublepost=1583401247][/doublepost]
Will try it thanks
[doublepost=1583400487,1583400110][/doublepost]I'm using minehut unfortunately and there's no skript mirror :emoji_frowning:(

also: https://skriptlang.github.io/Skript/expressions.html#ExprRespawnLocation
[doublepost=1583401642][/doublepost]
are u talking about instand respawn so no respawn button or wenn they press respawn?
[doublepost=1583401247][/doublepost]

also: https://skriptlang.github.io/Skript/expressions.html#ExprRespawnLocation


Whoops didn't see this was request:


Code:
on respawn:
    set {_loc} to the spawn location of player's world
    set respawn location to {_loc}