summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
blob: 09ada3adad9848be3a8835f4e0ede43ba46f9828 (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