mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-04-01 17:20:04 +00:00
Kick players out of instances when they leave
This commit is contained in:
@@ -82,9 +82,7 @@ void CNShardServer::_killConnection(CNSocket* cns) {
|
||||
|
||||
int64_t key = plr->SerialKey;
|
||||
|
||||
// save player to DB
|
||||
Database::updatePlayer(PlayerManager::players[cns].plr);
|
||||
PlayerManager::removePlayer(cns);
|
||||
PlayerManager::removePlayer(cns); // removes the player from the list and saves it to DB
|
||||
|
||||
// remove from CNSharedData
|
||||
CNSharedData::erasePlayer(key);
|
||||
|
||||
Reference in New Issue
Block a user