force respawn after 10 minutes dead

This commit is contained in:
2024-09-08 18:23:12 -05:00
parent 7ae25c9a1b
commit 9dbd6069f1
+3
View File
@@ -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;