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