forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user