chore: Add "Timeout" as a reaction (#1837)

This commit is contained in:
HCR-750F
2023-07-25 17:00:21 +08:00
committed by GitHub
parent 17e79dbaaa
commit f593d85af6
4 changed files with 12 additions and 2 deletions

View File

@ -48,6 +48,14 @@ namespace big
NETWORK::NETWORK_SESSION_KICK_PLAYER(player->id());
});
}
if (timeout)
{
player->block_net_events = true;
player->block_clone_sync = true;
player->block_clone_create = true;
LOG(WARNING) << std::format("{} has been timed out", player->get_name());
}
}