summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: 2b07c57678e00d21567636dbf80b29e457ae7276 (plain) (tree)
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