From 8038c2ebe27cfedeeb8d7816589af2ab95814899 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 5 Jan 2025 18:52:10 -0600 Subject: [PATCH] arena que messages --- src/engine/devcmd/cmds/InfoCmd.java | 8 ++++++++ src/engine/objects/Corpse.java | 1 + 2 files changed, 9 insertions(+) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 3fc5cc82..fa3445b1 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -18,6 +18,7 @@ import engine.gameManager.BuildingManager; import engine.gameManager.SessionManager; import engine.math.Vector3fImmutable; import engine.objects.*; +import engine.server.MBServerStatics; import engine.util.StringUtils; import java.text.DecimalFormat; @@ -530,6 +531,13 @@ public class InfoCmd extends AbstractDevCmd { } break; + + case Corpse: + Corpse corpse = (Corpse)target; + Long timeLeft = MBServerStatics.CORPSE_CLEANUP_TIMER_MS - (System.currentTimeMillis() - corpse.spawnedTime); + output += "Despawn in: " + timeLeft; + output += newline; + break; } throwbackInfo(pc, output); diff --git a/src/engine/objects/Corpse.java b/src/engine/objects/Corpse.java index fa7970ad..5d6da38e 100644 --- a/src/engine/objects/Corpse.java +++ b/src/engine/objects/Corpse.java @@ -43,6 +43,7 @@ public class Corpse extends AbstractWorldObject { private int inBuildingID = 0; private int inFloorID = -1; private int inBuilding = -1; + public Long spawnedTime = 0L; /** * No Id Constructor