Jump to content

Need help adding a wait time to my spawn skript


genpvpc

Recommended Posts

So I have a spawn skript and it instantly teleports you to spawn. Can anyone make it so it takes 5 seconds to teleport you there?

options:
    prefix: &a&lGenPvPc &7&l| &f
    setSpawnCommandPermission: commands.setspawn
    noPermissionMessage: &cYou do not have permission to use this command.

command /spawn:
    description: Teleport to the spawn point.
    usage: /spawn
    trigger:
        if {spawn} is set:
            teleport player to {spawn}
            send "{@prefix} &aTeleported to &eSpawn&a!" to player
        else:
            send "{@prefix} &cSpawn is not set, please contact a server administrator to use &e/setspawn&c." to player

command /setspawn:
    permission: {@setSpawnCommandPermission}
    permission message: {@noPermissionMessage}
    description: Set the spawn point.
    usage: /setspawn
    trigger:
        set {spawn} to location of player
        send "{@prefix} &aLocation for &eSpawn&a has been set to your current location." to player

Link to comment
Share on other sites

  • 2 weeks later...

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