summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/SquirrelChatLog.nut
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/SquirrelChatLog.nut')
-rw-r--r--MCServer/Plugins/SquirrelChatLog.nut13
1 files changed, 13 insertions, 0 deletions
diff --git a/MCServer/Plugins/SquirrelChatLog.nut b/MCServer/Plugins/SquirrelChatLog.nut
new file mode 100644
index 000000000..d90cef126
--- /dev/null
+++ b/MCServer/Plugins/SquirrelChatLog.nut
@@ -0,0 +1,13 @@
+class SquirrelChatLog extends Plugin
+{
+ function Initialize()
+ {
+ this.AddHook(Hook.Chat);
+ return true;
+ }
+
+ function OnChat(Message, Player)
+ {
+ ::print(Player.GetName() + ": " + Message);
+ }
+}