diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-02-21 14:53:46 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-02-21 14:53:46 +0100 |
commit | 21febaf4b342aecd5d797b1e2017591fde208388 (patch) | |
tree | beaf6b0b623a08052932351f64fb9d0924dd6d4d /src/Entities/Player.cpp | |
parent | Bad UTF-8 o.O (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
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 |