Jump to content

Spawn Skript


ChunkerDunkers

Recommended Posts

Have you ever wanted to set the server spawn? Well use this Skript to set the spawn on your server today!

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"

 

  • Like 1
  • Haha 1

Hello, I'm Nolan!


Cool Links

Vote Please - bit.ly/3tMXajE

MC Server - bit.ly/3hqYAOy


Please leave a like if I helped!


 

 

Link to comment
Share on other sites

You know instead of using if player has permission, you can just use permission: in the command. Like here is an example. 

command /hello:
	permsission: hello
	trigger:
		send "hello"

You can just do it like this to set a permission for a command. Also the stop is not needed because it is already the end of the command.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 2 months later...
3 hours ago, herodelombre1 said:

Hi

 

Hi there,

Necroposting, or replying on posts that haven’t been replied to in over a month is not allowed, unless the post is still relevant such as an active giveaway or a tutorial post.

But it seems like this post doesn't meet those requirements, could a staff lock this please?


I'm just a known player who been playing since the 24 July 2019.

Please don't DM me for support, go here (if you don't mind waiting) or join Minehut's Discord (which is more active) if you need assistance.


 

Link to comment
Share on other sites

  • 11 months later...
On 12/9/2021 at 10:13 AM, KITIT said:

Also, I Found a little typo lol "Ypu"

Please keep replies helpful/relevant to the post.
 

 

On 12/9/2021 at 10:21 AM, AgentGamerPro said:

imagine necro


If you see someone not following the rules, please utilize the report button.

Thanks!

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...