1
0

Merge pull request #1623 from p-mcgowan/issue_1253

Prevent multiple logins with same username, unless allowed in settings
This commit is contained in:
Mattes D
2014-12-10 11:17:11 +01:00
8 changed files with 94 additions and 3 deletions

View File

@@ -643,6 +643,22 @@ bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback
bool cRoot::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback)
{
for (auto World : m_WorldsByName)
{
if (World.second->DoWithPlayer(a_PlayerName, a_Callback))
{
return true;
}
}
return false;
}
AString cRoot::GetProtocolVersionTextFromInt(int a_ProtocolVersion)
{
return cProtocolRecognizer::GetVersionTextFromInt(a_ProtocolVersion);