diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-22 16:57:45 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-22 16:57:45 +0100 |
commit | 2518738f7f8a0e24ddb27b48a7cab1e03f89a508 (patch) | |
tree | f4b1777f460a1b63e46a94e601def06728227478 /Plugins/ChatLog | |
parent | Lua seems to have trouble with a combination of overloaded functions and class inheritance, so I renamed TeleportTo( cEntity* ) to TeleportToEntity (diff) | |
download | cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar.gz cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar.bz2 cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar.lz cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar.xz cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.tar.zst cuberite-2518738f7f8a0e24ddb27b48a7cab1e03f89a508.zip |
Diffstat (limited to 'Plugins/ChatLog')
-rw-r--r-- | Plugins/ChatLog/plugin.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Plugins/ChatLog/plugin.lua b/Plugins/ChatLog/plugin.lua new file mode 100644 index 000000000..e18a8e642 --- /dev/null +++ b/Plugins/ChatLog/plugin.lua @@ -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
\ No newline at end of file |