From 943dcaea14c7530eecca57af015f1007b3b9630f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 22 Jun 2013 19:08:34 +0000 Subject: Plugins can modify message in the OnChat() hook handler. FS #376 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1622 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Plugin.h') diff --git a/source/Plugin.h b/source/Plugin.h index 74447d888..9107cce6f 100644 --- a/source/Plugin.h +++ b/source/Plugin.h @@ -49,7 +49,7 @@ public: * You can also return false, so default behavior is used. **/ virtual bool OnBlockToPickups (cWorld * a_World, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups); - virtual bool OnChat (cPlayer * a_Player, const AString & a_Message); + virtual bool OnChat (cPlayer * a_Player, AString & a_Message); virtual bool OnChunkAvailable (cWorld * a_World, int a_ChunkX, int a_ChunkZ); virtual bool OnChunkGenerated (cWorld * a_World, int a_ChunkX, int a_ChunkZ, cChunkDesc * a_ChunkDesc); virtual bool OnChunkGenerating (cWorld * a_World, int a_ChunkX, int a_ChunkZ, cChunkDesc * a_ChunkDesc); -- cgit v1.2.3