summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: 284a8068553e0953d00c7e85c34b7bcfbfbb9b20 (plain) (tree)
1
2
3
4
5
6
7

                                             
                                     



                                                                                     
function HandleSpawnCommand( Split, Player )
	World = Player:GetWorld()
	SetBackCoordinates( Player )
	Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
	LOGINFO( Player:GetName() .. " returned to spawn." )
	return true
end