Anti Void

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

lunarenzox

Member
May 13, 2018
17
0
0
21
Category: Telport

Suggested name: Void Teleport

What I want:
If players fall into the void, they will be back on the spawn, also support per world :emoji_grinning:

Ideas for commands: /svs (Set where player will be teleported if they fall into void

Ideas for permissions:
svs.set (for /svs command)


When I'd like it by: ASAP :emoji_slight_smile:
 
code_language.skript:
on damage:
    victim is a player
    damage cause is void
    cancel event
    teleport victim to {svs}
    set {svs::nofalldamage::%victim%} to true
    wait 0.5 seconds
    delete {svs::nofalldamage::%victim%}
    
on damage:
    damage cause is fall
    victim is a player
    {svs::nofalldamage::%victim%} is set
    cancel event
    
on join:
    delete {svs::nofalldamage::%player%}
    
command /svs:
    permission: svs.set
    trigger:
        set {svs} to location of player
        message "&aLocation set!"