diff --git a/src/main/java/us/ajg0702/queue/Main.java b/src/main/java/us/ajg0702/queue/Main.java index 68c6031..525f268 100644 --- a/src/main/java/us/ajg0702/queue/Main.java +++ b/src/main/java/us/ajg0702/queue/Main.java @@ -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)); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index dc6d0a1..812309a 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,10 +1,14 @@ # Dont touch this number please -config-version: 1 +config-version: 2 # The time the server will wait between sending people in the queue # Default: 5 wait-time: 5 +# The time that a server has to be offline to be marked as offline instead of restarting +# Default: 120 +offline-time: 120 + # If a player is in a server, you can have the plugin make them automatically join a queue for another server # Example with the default values: Player joins survivalfallback server, they will auto-join the queue for survival queue-servers: