1
0
cuberite-2a/Plugins/SquirrelChatLog.nut

21 lines
325 B
Plaintext
Raw Normal View History

class SquirrelChatLog extends Plugin
{
name = "SquirrelChatLogger";
function Initialize()
{
::print("SquirrelChatLog initialize()");
this.AddHook(Hook.Chat);
return true;
}
function OnChat( Message, Player )
{
::print("CHAT");
::print(Player.GetName() + ": " + Message);
}
}