summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ChatLog/plugin.lua
blob: e18a8e6428b0b66b63916fd0359bd041fdd2afe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function Initialize( Plugin )
	Plugin:SetName( "ChatLog" )
	Plugin:SetVersion( 2 )

	PluginManager = cRoot:Get():GetPluginManager()
	PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_CHAT )

	LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
	return true
end

function OnChat( Message, Player )
	-- Lets get loggin'
	LOGINFO("[" .. Player:GetName() .. "]: " .. Message);

	return false
end