summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/onjoinleave.lua
blob: cd0ead4fc99851c60bace2527edbc54fdc539f7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23





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