summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: 120c241fcf02cb63ff67f47b6df55900fd269b94 (plain) (blame)
1
2
3
4
5
6
7
8
9
function HandleSpawnCommand(Split, Player)

	World = Player:GetWorld()
	SetBackCoordinates(Player)
	Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
	SendMessageSuccess( Player, "Returned to world spawn" )
	return true

end