1
0

Acquire chunk map CS when accessing player entities

This commit is contained in:
Peter Bell
2020-04-12 23:04:30 +01:00
committed by Mattes D
parent fb05ea7cf7
commit 43525c5df8
3 changed files with 32 additions and 29 deletions

View File

@@ -435,7 +435,14 @@ bool cServer::Start(void)
bool cServer::Command(cClientHandle & a_Client, AString & a_Cmd)
{
return cRoot::Get()->GetPluginManager()->CallHookChat(*(a_Client.GetPlayer()), a_Cmd);
bool Res = cRoot::Get()->DoWithPlayerByUUID(
a_Client.GetUUID(),
[&](cPlayer & a_Player)
{
return cRoot::Get()->GetPluginManager()->CallHookChat(a_Player, a_Cmd);
}
);
return Res;
}