added offline-time to the config

This commit is contained in:
ajgeiss0702
2020-05-11 10:35:46 -07:00
parent 6e32224b7c
commit e5000a7b28
2 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -24,7 +24,6 @@ import us.ajg0702.queue.utils.BungeeStats;
public class Main extends Plugin implements Listener {
int timeBetweenPlayers = 5;
int offlineSecs = 120;
BungeeStats metrics;
@@ -118,7 +117,7 @@ public class Main extends Plugin implements Listener {
int len = plys.size();
if(notif) {
String or = msgs.get("status.offline.restarting");
if(ot > offlineSecs) {
if(ot > config.getInt("offline-time")) {
or = msgs.get("status.offline.offline");
} else {
//ply.sendMessage(formatMessage(ot + " <= "+offlineSecs));