From 4831e4650936cef52ce347fdc4fa712e1f50554f Mon Sep 17 00:00:00 2001 From: pieterdebot Date: Thu, 9 Jan 2020 14:26:23 +0100 Subject: [PATCH] Made PVP_START_IN broadcast less often, above 5 minutes to PvP broadcasts will occur once ever 5 minutes. --- src/main/java/com/gmail/val59000mc/threads/EnablePVPThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/val59000mc/threads/EnablePVPThread.java b/src/main/java/com/gmail/val59000mc/threads/EnablePVPThread.java index 68d16bc8c..46eb0af74 100644 --- a/src/main/java/com/gmail/val59000mc/threads/EnablePVPThread.java +++ b/src/main/java/com/gmail/val59000mc/threads/EnablePVPThread.java @@ -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{