summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-30 22:24:04 +0200
committermadmaxoft <github@xoft.cz>2014-08-30 22:24:04 +0200
commitdb663c7ee1737f5e03c0bce6584933123b9d58e3 (patch)
treea6ad2990fdaff104c3663a8655be26ad55dc1ccc /src/BlockEntities
parentMerge branch 'master' into fixes (diff)
downloadcuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar.gz
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar.bz2
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar.lz
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar.xz
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.tar.zst
cuberite-db663c7ee1737f5e03c0bce6584933123b9d58e3.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/CommandBlockEntity.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BlockEntities/CommandBlockEntity.cpp b/src/BlockEntities/CommandBlockEntity.cpp
index fe2f5e60a..dd0858378 100644
--- a/src/BlockEntities/CommandBlockEntity.cpp
+++ b/src/BlockEntities/CommandBlockEntity.cpp
@@ -211,13 +211,14 @@ void cCommandBlockEntity::Execute()
}
} CmdBlockOutCb(this);
- if ( // Administrator commands are not executable by command blocks
+ // Administrator commands are not executable by command blocks:
+ if (
(m_Command != "stop") &&
(m_Command != "restart") &&
(m_Command != "kick") &&
(m_Command != "ban") &&
(m_Command != "ipban")
- )
+ )
{
cServer * Server = cRoot::Get()->GetServer();
LOGD("cCommandBlockEntity: Executing command %s", m_Command.c_str());