Arena System

This commit is contained in:
2025-01-01 20:35:21 -06:00
parent 65fddd06a9
commit b3cf72abdc
3 changed files with 31 additions and 16 deletions
+7 -1
View File
@@ -55,6 +55,12 @@ public class Arena {
public Boolean checkToComplete(){
if(this.startTime == null)
this.startTime = System.currentTimeMillis();
if(System.currentTimeMillis() - this.startTime < 10000L)
return false;
if(this.disqualify())
return true;
@@ -67,7 +73,7 @@ public class Arena {
} else if(!this.player1.isAlive() && !this.player2.isAlive()){
ArenaManager.endArena(this,null,null,"Both Players Have Died");
return true;
} else if(this.startTime + 300000 > System.currentTimeMillis()){
} else if(this.startTime + 300000L < System.currentTimeMillis()){
ArenaManager.endArena(this,null,null,"Time Has Elapsed");
return true;
}