summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-21 14:53:46 +0100
committerHowaner <franzi.moos@googlemail.com>2014-02-21 14:53:46 +0100
commit21febaf4b342aecd5d797b1e2017591fde208388 (patch)
treebeaf6b0b623a08052932351f64fb9d0924dd6d4d /src/Entities
parentBad UTF-8 o.O (diff)
downloadcuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar.gz
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar.bz2
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar.lz
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar.xz
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.tar.zst
cuberite-21febaf4b342aecd5d797b1e2017591fde208388.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 70ddb3c98..7a3aaf568 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1529,7 +1529,11 @@ void cPlayer::LoadPermissionsFromDisk()
AStringVector Split = StringSplit( Groups, "," );
for( unsigned int i = 0; i < Split.size(); i++ )
{
- AddToGroup( Split[i].c_str() );
+ if (!cRoot::Get()->GetGroupManager()->ExistsGroup(Split[i]))
+ {
+ LOGWARNING("The group %s for player %s was not found!", Split[i].c_str(), m_PlayerName.c_str());
+ }
+ AddToGroup(Split[i].c_str());
}
}
else