forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -19,6 +19,7 @@ import engine.db.archive.DataWarehouse;
|
||||
import engine.db.archive.MineRecord;
|
||||
import engine.gameManager.BuildingManager;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.PlayerManager;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.job.JobContainer;
|
||||
import engine.job.JobScheduler;
|
||||
@@ -970,7 +971,7 @@ public class Building extends AbstractWorldObject {
|
||||
if (this.ownerIsNPC)
|
||||
return NPC.getFromCache(this.ownerUUID);
|
||||
|
||||
return PlayerCharacter.getFromCache(this.ownerUUID);
|
||||
return PlayerManager.getFromCache(this.ownerUUID);
|
||||
|
||||
}
|
||||
|
||||
@@ -1095,7 +1096,7 @@ public class Building extends AbstractWorldObject {
|
||||
Logger.info("Building UID " + this.getObjectUUID() + " Failed to Load NPC Owner with ID " + this.ownerUUID + " Location " + this.getLoc().toString());
|
||||
|
||||
} else if (this.ownerUUID != 0) {
|
||||
if (PlayerCharacter.getPlayerCharacter(this.ownerUUID) == null) {
|
||||
if (PlayerManager.getPlayerCharacter(this.ownerUUID) == null) {
|
||||
Logger.info("Building UID " + this.getObjectUUID() + " Failed to Load Player Owner with ID " + this.ownerUUID + " Location " + this.getLoc().toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user