summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: 2938318b2bf95e78375b40c19ca220577a9fdfee (plain) (blame)
1
2
3
4
5
6
7
8
9
function HandleSpawnCommand( Split, Player )
	World = Player:GetWorld()
	X[Player:GetName()] = Player:GetPosX()
	Y[Player:GetName()] = Player:GetPosY()
	Z[Player:GetName()] = Player:GetPosZ()
	Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
	LOGINFO( Player:GetName() .. " returned to spawn." )
	return true
end