Skip to content

Commit

Permalink
Update ProtectionTime.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalibrier authored Dec 30, 2024
1 parent 53d0738 commit d63f369
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/de/cuuky/varo/game/start/ProtectionTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void run() {
return;
}

if (this.protectionTimer == 0) {
if (ProtectionTime.this.protectionTimer == 0) {
Main.getLanguageManager().broadcastMessage(ConfigMessages.PROTECTION_TIME_OVER);
Main.getVaroGame().setProtection(null);
scheduler.cancel();
Expand Down Expand Up @@ -64,16 +64,24 @@ public String getCountdownMinutes() {

/**
*
* @return the count down in seconds
* @return the countdown in seconds
*/
public String getCountdownSeconds() {
return getCountdownSec(this.protectionTimer);
}

/**
*
* @return the remaining protection time
*/
public int getRemainingTime() {
return this.protectionTimer;
}

/**
*
* @return the protection timer
*/
public int getProtectionTimer() {
return protectionTimer;
}
Expand Down

0 comments on commit d63f369

Please sign in to comment.