summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: d4e033c7eea5ed7caa22e10e09f7f8a5b558d926 (plain) (blame)
1
2
3
4
5
6
7
function HandleSpawnCommand(Split, Player)
	World = Player:GetWorld()
	SetBackCoordinates(Player)
	Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
	LOGINFO(Player:GetName() .. " returned to spawn.")
	return true
end