Browse Source

force respawn of dead players throwing error

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
a6510af56d
  1. 3
      src/engine/objects/PlayerCharacter.java

3
src/engine/objects/PlayerCharacter.java

@ -4844,8 +4844,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4844,8 +4844,7 @@ public class PlayerCharacter extends AbstractCharacter {
if (!this.isAlive() && this.isEnteredWorld()) {
if(!this.timestamps.containsKey("DeathTime")){
this.timestamps.put("DeathTime",System.currentTimeMillis());
}
if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000)
}else if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000)
forceRespawn(this);
return;
}

Loading…
Cancel
Save