Jump to content

My skript does not work


7ib0

Recommended Posts

So i wrote a skript for a spawn one day and it doesnt work.
This is the skript:
 

on join:
    teleport player to {spawn}
    
command /setspawn:
    trigger:
        if player has permission "spawn.set":
            if {spawn} is not set:
                send "[ServerName] &aThe spawn has been set"
                set {spawn} to location of player
                stop
            
command /delspawn:
    trigger:
        if player has permission "spawn.delete":
            if {spawn} is set:
                send "[ServerName] &aThe spawn has been deleted"
                delete {spawn}
                stop

            
command /spawn:
    trigger:
        teleport player to {spawn}
        send "[ServerName] &aYpu have been teleported to spawn"

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...