summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/onjoinleave.lua
blob: 34b1a29ae0d46a64ed2536ce498523e1637f5414 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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