Jump to content

How do you allow groups with a permission to bypass a 5 second delay of /spawn


Optilusion

Recommended Posts

 

 

command /spawn [<player>]:
	aliases: hub, lobby
	permission: spawn.spawn
	permission message: &cSorry, but you don't have permission to execute this command!
	description: Teleport you to spawn.
	trigger:
		if {spawn} isn't set:
			message "&4Error:&c Spawn is not set!"
			stop
	trigger:
		if player has permission "op":
		teleport player to {spawn}
		if
		argument 1 is not set:
			teleport player to {spawn}
			message "&6You will be teleported to spawn in 5 seconds..."
			wait 20 ticks
			teleport player to {spawn}
			else:
				if sender has permission "spawn.spawn.others":
					if argument is online:
						teleport argument to {spawn}
					if sender is a player:
						message "&6You have been teleported to spawn by &c%player%&6." to argument 1
					if sender is not a player:
						message "&6You have been teleported to spawn by &cConsole&6." to argument 1
						teleport player to {spawn}
				else:
					message "&cSorry, but you don't have permission to execute this command!"

This is what I have so far..

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