1
0

Updated the ChatLog plugin to the new format

git-svn-id: http://mc-server.googlecode.com/svn/trunk@315 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2012-02-22 15:57:45 +00:00
parent 41d55ef86b
commit 2518738f7f
3 changed files with 19 additions and 42 deletions

View File

@@ -0,0 +1,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