summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ChatLog/plugin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/ChatLog/plugin.lua')
-rw-r--r--MCServer/Plugins/ChatLog/plugin.lua27
1 files changed, 21 insertions, 6 deletions
diff --git a/MCServer/Plugins/ChatLog/plugin.lua b/MCServer/Plugins/ChatLog/plugin.lua
index 0288d1aa9..9ef321b48 100644
--- a/MCServer/Plugins/ChatLog/plugin.lua
+++ b/MCServer/Plugins/ChatLog/plugin.lua
@@ -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);