Jump to content

Free /spawn /delspawn /setspawn skript (TIME OUT ON MOVE)


Mrbizarre

Recommended Posts

i got bored so i made a /spawn skript where it times out when you move

 

 

 

 

options:
    Prefix: &8[&9&lVast&d&lSea&8]&7&l

command /setspawn:
    trigger:
        if player has permission "admin.sk":
            set {spawn} to player's location
            send "{@Prefix} Set Spawn to your location!"
        else:
            send "{@Prefix} No permission!"

options:
    Prefix: &8[&9&lVast&d&lSea&8]&7&l
                
command /spawn:
    trigger:
        if {spawn} is not set:
            send "&8[&9&lVast&d&lSea&8]&7&l Currently no spawn point!"
            stop
        if {spawn} is set:
            send "{@Prefix} Teleporting In 5 Seconds! Don't Move!" to player
            set {_x} to x-coordinate of player
            set {_z} to z-coordinate of player
        loop 5 times:
            send action bar "{@Prefix} teleporting in %6-loop-value%" to player
            if "%x-coordinate of player% - %z-coordinate of player%" != "%{_x}% - %{_z}%":
                send "{@Prefix} You moved!"
                stop 
            wait 1 second
        teleport player to {spawn}
        
        
on respawn:
    teleport player to {spawn}
    send "&8[&9&lVast&d&lSea&8]&7&l You died, and where teleported to spawn!"
    
    
    
    
options:
    prefix: &8[&9&lVast&d&lSea&8]&7&l

command /delspawn:
    permission: admin.sk
    trigger:
        if {spawn} is not set:
            send "{@prefix} Currently no spawn point!"
            stop
        if {spawn} is set:
            delete {spawn}
            send "{@prefix} Deleted the spawn point!"

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...