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