summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:16 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:16 +0100
commitaa8b46e94714f261bfe451897b7ef23934e764eb (patch)
treea0a0e7bb1ef59f79a147260a2c8c73752203bf80 /src/Bindings
parentAdded more chat functions (diff)
downloadcuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar.gz
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar.bz2
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar.lz
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar.xz
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.tar.zst
cuberite-aa8b46e94714f261bfe451897b7ef23934e764eb.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index a20583550..c6c8c081e 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -248,7 +248,7 @@ bool cPluginManager::CallHookChat(cPlayer * a_Player, AString & a_Message)
{
AStringVector Split(StringSplit(a_Message, " "));
ASSERT(!Split.empty()); // This should not happen - we know there's at least one char in the message so the split needs to be at least one item long
- a_Player->SendMessage(Printf("%s[INFO] %sUnknown command: \"%s\"", cChatColor::Yellow.c_str(), cChatColor::White.c_str(), Split[0].c_str()));
+ a_Player->SendMessageInfo(Printf("Unknown command: \"%s\"", Split[0].c_str()));
LOGINFO("Player %s issued an unknown command: \"%s\"", a_Player->GetName().c_str(), a_Message.c_str());
return true; // Cancel sending
}
@@ -1392,7 +1392,7 @@ bool cPluginManager::HandleCommand(cPlayer * a_Player, const AString & a_Command
!a_Player->HasPermission(cmd->second.m_Permission)
)
{
- a_Player->SendMessage(Printf("%s[INFO] %sForbidden command; insufficient privileges: \"%s\"", cChatColor::Rose.c_str(), cChatColor::White.c_str(), Split[0].c_str()));
+ a_Player->SendMessageFailure(Printf("Forbidden command; insufficient privileges: \"%s\"", Split[0].c_str()));
LOGINFO("Player %s tried to execute forbidden command: \"%s\"", a_Player->GetName().c_str(), Split[0].c_str());
a_WasCommandForbidden = true;
return false;