1
0

Forgotten files for previous merge commit (rev 1139)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1140 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-01-13 11:10:26 +00:00
parent 43e6840719
commit 752057fb1b
15 changed files with 474 additions and 117 deletions

View File

@@ -1,15 +1,30 @@
function Initialize( Plugin )
Plugin:SetName( "ChatLog" )
Plugin:SetVersion( 2 )
-- plugin.lua
-- Implements the main entrypoint for the plugin, as well as all the handling needed
-- ChatLog plugin logs all chat messages into the server log
function Initialize(Plugin)
Plugin:SetName("ChatLog")
Plugin:SetVersion(3)
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_CHAT )
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHAT)
LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
return true
end
function OnChat( Player, Message )
function OnChat(Player, Message)
-- Lets get loggin'
LOGINFO("[" .. Player:GetName() .. "]: " .. Message);