Znyx Posted March 8, 2023 Share Posted March 8, 2023 command /setspawn: aliases: setlobby permission: spawn.set trigger: set {spawn} to player's location send "&aSpawn has successfully been set to your location!" to player play sound "minecraft:blocks.note_block.pling" for player command /spawn [<player>]: aliases: lobby trigger: if {spawn} isn't set: send "&cSpawn hasn't been set!" to player play sound "minecraft:blocks.note_block.didgeridoo" for player if arg-1 is set: if arg-1 isn't online: send "&cThat's not a player!" to player play sound "minecraft:blocks.note_block.didgeridoo" for player if player has permission "spawn.tpothers": teleport arg-1 to {spawn} send "&aYou have been teleported to spawn by &f%player%&a." to arg-1 send "&aSuccessfully teleported &f%arg-1%&a to spawn!" to player play sound "minecraft:blocks.note_block.pling" for player and arg-1 else: send "&cYou do not have the permission to teleport others to spawn!" to player play sound "minecraft:blocks.note_block.didgeridoo" for player exit teleport player to {spawn} send "&aYou have been teleported to spawn!" to player play sound "minecraft:blocks.note_block.pling" for player Sure you could do it a bit better, but I included some sounds and stuff. Haven't tried it tho. Link to comment Share on other sites More sharing options...
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