summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-09 22:25:50 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-09 22:25:50 +0200
commit38459c9c171fc8bea3a0d7fd54141aa16dc195ca (patch)
treec397496b072c4ae0a22b806ada4f2a1f194f3e7a /Plugins
parentImproved Squirrel Bindings (diff)
downloadcuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar.gz
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar.bz2
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar.lz
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar.xz
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.tar.zst
cuberite-38459c9c171fc8bea3a0d7fd54141aa16dc195ca.zip
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/SquirrelChatLog.nut13
1 files changed, 3 insertions, 10 deletions
diff --git a/Plugins/SquirrelChatLog.nut b/Plugins/SquirrelChatLog.nut
index df43c3fb3..4ef0fd595 100644
--- a/Plugins/SquirrelChatLog.nut
+++ b/Plugins/SquirrelChatLog.nut
@@ -1,20 +1,13 @@
class SquirrelChatLog extends Plugin
-{
- name = "SquirrelChatLogger";
-
+{
function Initialize()
- {
- ::print("SquirrelChatLog initialize()");
-
+ {
this.AddHook(Hook.Chat);
-
return true;
}
- function OnChat( Message, Player )
+ function OnChat(Message, Player)
{
- ::print("CHAT");
::print(Player.GetName() + ": " + Message);
-
}
}