Jump to content

/spawn skript


pnguin

Recommended Posts

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"

 

Note: i made this skript overnight so it might have errors.

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
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...