create PlayerManager static class

This commit is contained in:
2025-01-05 20:47:33 -06:00
parent 76eed79b0a
commit 450ae2ec82
87 changed files with 2730 additions and 2853 deletions
+3 -3
View File
@@ -744,7 +744,7 @@ public class WorldServer {
DispatchMessage.dispatchMsgToInterestArea(playerCharacter, updateStateMsg, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, false, false);
if (playerCharacter.region != null)
if (PlayerCharacter.CanBindToBuilding(playerCharacter, playerCharacter.region.parentBuildingID))
if (PlayerManager.CanBindToBuilding(playerCharacter, playerCharacter.region.parentBuildingID))
playerCharacter.bindBuilding = playerCharacter.region.parentBuildingID;
else
playerCharacter.bindBuilding = 0;
@@ -775,7 +775,7 @@ public class WorldServer {
loadedMob.playerAgroMap.remove(player.getObjectUUID());
}
player.getTimestamps().put("logout", System.currentTimeMillis());
player.setEnteredWorld(false);
PlayerManager.setEnteredWorld(player, false);
// remove from simulation and zero current loc
@@ -809,7 +809,7 @@ public class WorldServer {
player.respawnLock.writeLock().lock();
try {
if (!player.isAlive())
player.respawn(false, false, true);
PlayerManager.respawn(player, false, false, true);
} catch (Exception e) {
Logger.error(e);
} finally {