From 9dbd6069f1b8499bab4bf814d689b2fd47b575cd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 8 Sep 2024 18:23:12 -0500 Subject: [PATCH] force respawn after 10 minutes dead --- src/engine/objects/PlayerCharacter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index f3412d7f..54a0d102 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4861,6 +4861,9 @@ public class PlayerCharacter extends AbstractCharacter { try { if (!this.isAlive()) { + if(!this.timestamps.containsKey("DeathTime")){ + this.timestamps.put("DeathTime",System.currentTimeMillis()); + } if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000) forceRespawn(this); return;