summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:02 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:02 +0100
commit3450f0ca42c8f72920045709d0a57d5443b086a7 (patch)
treeaca17a013317a3d5da901c693d34d9fa26e1684d /src/Root.h
parentReduced max explosions per tick (diff)
downloadcuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.gz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.bz2
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.lz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.xz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.zst
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.zip
Diffstat (limited to '')
-rw-r--r--src/Root.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Root.h b/src/Root.h
index fa52c21a1..ba106b54e 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -104,6 +104,9 @@ public:
/// Finds a player from a partial or complete player name and calls the callback - case-insensitive
bool FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
+
+ void BroadcastChatJoin(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtJoin)); }
+ void BroadcastChatLeave(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtLeave)); }
// tolua_begin
@@ -115,7 +118,6 @@ public:
void BroadcastChatWarning(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtWarning)); }
void BroadcastChatFatal(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtFailure)); }
void BroadcastChatDeath(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtDeath)); }
- void BroadcastChatPrivateMsg(const AString & a_Message) { BroadcastChat(AppendChatEpithet(a_Message, mtPrivateMessage)); }
/// Returns the textual description of the protocol version: 49 -> "1.4.4". Provided specifically for Lua API
static AString GetProtocolVersionTextFromInt(int a_ProtocolVersionNum);