Browse Source

force respawn after 10 minutes dead

lakebane-strongholds
FatBoy-DOTC 2 months ago
parent
commit
9dbd6069f1
  1. 3
      src/engine/objects/PlayerCharacter.java

3
src/engine/objects/PlayerCharacter.java

@ -4861,6 +4861,9 @@ public class PlayerCharacter extends AbstractCharacter {
try { try {
if (!this.isAlive()) { if (!this.isAlive()) {
if(!this.timestamps.containsKey("DeathTime")){
this.timestamps.put("DeathTime",System.currentTimeMillis());
}
if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000) if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000)
forceRespawn(this); forceRespawn(this);
return; return;

Loading…
Cancel
Save