JevilGun Posted August 21, 2022 Share Posted August 21, 2022 command /setspawn: permission: op trigger: set {spawn} to location of block at location of player send "&6Set spawn to: %{spawn}%" to player Link to comment Share on other sites More sharing options...
0 Pigeuon Posted August 22, 2022 Share Posted August 22, 2022 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 More sharing options...
Question
JevilGun
command /setspawn:
permission: op
trigger:
set {spawn} to location of block at location of player
send "&6Set spawn to: %{spawn}%" to player
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now