Jump to content
  • 0

ive followed the minehut tutorial for /setspawn command it says no errors but the command doesnt work. anybody got a working /setspawn skript?


JevilGun

Question

1 answer to this question

Recommended Posts

  • 0

Try this:

command /setspawn:
    trigger:
        if player is op:
            set {global.survival.spawn} to player's position
            send "&6Spawn: &7The Global Survival Spawn has been set."

command /spawn:
    trigger:
        set {_waitedcommandspawn} to difference between {spawn.teleport.%player%.lastused} and now
        if {_waitedcommandspawn} is less than 30 seconds:
            message "&6Spawn: &7You cannot use this command &7for &a%difference between 30 seconds and {_waitedcommandspawn}%&7."
            stop
        else:
            if {global.survival.spawn} is set:
                teleport player to {global.survival.spawn}
                set {spawn.teleport.%player%.lastused} to now
                send "&6Spawn: &7You was teleported to the Spawn Zone."
            else:
                if player has op:
                    send "&6Spawn: &cThere is no spawn. Create one using &e/setspawn"

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