summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: d1ef7399bb7a853dbc639224fa59ac981353ecc4 (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())
	Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Returned to world spawn" )
	return true
end