Skip to content

Commit

Permalink
Made PVP_START_IN broadcast less often, above 5 minutes to PvP broadc…
Browse files Browse the repository at this point in the history
…asts will occur once ever 5 minutes.
  • Loading branch information
pieterdebot committed Jan 9, 2020
1 parent 79b9442 commit 4831e46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void run() {
return; // Stop thread
}

if(timeBeforePvp <= 10 || timeBeforePvp%60 == 0){
if(timeBeforePvp <= 10 || (timeBeforePvp < 60*5 && timeBeforePvp%60 == 0) || timeBeforePvp%(60*5) == 0){
if(timeBeforePvp%60 == 0) {
gm.broadcastInfoMessage(Lang.PVP_START_IN + " " + (timeBeforePvp / 60) + "m");
}else{
Expand Down

0 comments on commit 4831e46

Please sign in to comment.