From 5cd86bc0333fb825053c4341b1f8c3589fe52a47 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 5 Feb 2024 19:20:27 -0600 Subject: [PATCH] characters logged in exceeding max:1 will be given PR999 death shroud --- src/engine/InterestManagement/InterestManager.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index ab6ea532..6b0f1555 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -12,9 +12,11 @@ import engine.Enum; import engine.Enum.DispatchChannel; import engine.Enum.GameObjectType; import engine.gameManager.GroupManager; +import engine.gameManager.PowersManager; import engine.gameManager.SessionManager; import engine.job.JobScheduler; import engine.jobs.RefreshGroupJob; +import engine.math.Vector3fImmutable; import engine.net.AbstractNetMsg; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -24,6 +26,7 @@ import engine.net.client.msg.LoadStructureMsg; import engine.net.client.msg.MoveToPointMsg; import engine.net.client.msg.UnloadObjectsMsg; import engine.objects.*; +import engine.powers.EffectsBase; import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; @@ -525,6 +528,15 @@ public enum InterestManager implements Runnable { updateStaticList(player, origin); updateMobileList(player, origin); + // apply the 1 box restriction + for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ + if(origin.machineID == pc.getClientConnection().machineID){ + //add deatshroud effect + PowersManager.applyPower(player, player, Vector3fImmutable.ZERO, 1672601862, 999, false); + return; + } + } + } public synchronized void HandleLoadForTeleport(PlayerCharacter playerCharacter) {