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

                               
                                              




                                                                                                                             

                                                                                                                            
  
function OnPlayerJoined(Player)
	ShowMOTDTo( Player )
	local Server = cRoot:Get():GetServer()
	Server:SendMessage(cChatColor.Yellow .. "[JOIN] " .. cChatColor.White .. Player:GetName() .. " has joined the game" )
	return false
end

function OnDisconnect(Player, Reason)
	local Server = cRoot:Get():GetServer()
	Server:SendMessage(cChatColor.Yellow .. "[LEAVE] " .. cChatColor.White .. Player:GetName() .. " has left the game" )
end