summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/onjoinleave.lua
blob: cd0ead4fc99851c60bace2527edbc54fdc539f7d (plain) (tree)
1
2
3
4
5
6
7
8
9




 
                               


                                                                                                                                         

   



 
                                     
                                                                                                                                        
                   




   





function OnPlayerJoined(Player)
	ShowMOTDTo(Player)
	Player:GetWorld():BroadcastChat(cChatColor.Yellow .. "[JOIN] " .. cChatColor.White .. Player:GetName() .. " has joined the game")
	return false
end





function OnDisconnect(Player, Reason)
	Player:GetWorld():BroadcastChat(cChatColor.Yellow .. "[LEAVE] " .. cChatColor.White .. Player:GetName() .. " has left the game")
	return true
end