mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Clean up some auth packet handling related code
This commit is contained in:
parent
00f71c3b9d
commit
a65f6f07f3
9 changed files with 52 additions and 98 deletions
|
@ -552,10 +552,8 @@ bool ServerEnvironment::removePlayerFromDatabase(const std::string &name)
|
|||
void ServerEnvironment::kickAllPlayers(AccessDeniedCode reason,
|
||||
const std::string &str_reason, bool reconnect)
|
||||
{
|
||||
for (RemotePlayer *player : m_players) {
|
||||
m_server->DenyAccessVerCompliant(player->getPeerId(),
|
||||
player->protocol_version, reason, str_reason, reconnect);
|
||||
}
|
||||
for (RemotePlayer *player : m_players)
|
||||
m_server->DenyAccess(player->getPeerId(), reason, str_reason, reconnect);
|
||||
}
|
||||
|
||||
void ServerEnvironment::saveLoadedPlayers(bool force)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue