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.

Help with a relog system

Discussion in 'Skript' started by HollowVoidGojo, May 14, 2022.

Thread Status:
Not open for further replies.
  1. HollowVoidGojo

    Joined:
    Aug 14, 2021
    Messages:
    10
    Likes Received:
    0
    I want to make a relog system where after you rejoin the server, you get a minute of invulnerability before you can die again, could someone tell me the code to make this?
     
  2. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
  3. BanditEagle

    BanditEagle Active Member

    Joined:
    May 3, 2021
    Messages:
    55
    Likes Received:
    0
    I think this should work
    Code (Text):
    1. on join:
    2.     set {invulnerable::%player's uuid%} to true
    3.     wait 1 minute
    4.     clear {invulnerable::%player's uuid%}
    5.  
    6. on damage of player:
    7.     if {invulnerable::%victim's uuid%} is set:
    8.         cancel event
     
Thread Status:
Not open for further replies.

Share This Page

Loading...