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 -2
View File
@@ -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());
}
}