From 348e796752904d88267bc4b7c4a799516c43e2dd Mon Sep 17 00:00:00 2001 From: games647 Date: Tue, 28 Jun 2016 20:47:13 +0200 Subject: [PATCH] Switch to the new properties settings --- .../java/fr/xephi/authme/process/quit/AsynchronousQuit.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java b/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java index d331cf77a..c1aac0c6f 100644 --- a/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java +++ b/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java @@ -11,7 +11,7 @@ import fr.xephi.authme.datasource.DataSource; import fr.xephi.authme.process.AsynchronousProcess; import fr.xephi.authme.process.ProcessService; import fr.xephi.authme.process.SyncProcessManager; -import fr.xephi.authme.settings.Settings; +import fr.xephi.authme.settings.properties.PluginSettings; import fr.xephi.authme.settings.properties.RestrictionSettings; import fr.xephi.authme.util.StringUtils; import fr.xephi.authme.util.Utils; @@ -90,7 +90,7 @@ public class AsynchronousQuit implements AsynchronousProcess { //always unauthenticate the player - use session only for auto logins on the same ip playerCache.removePlayer(name); - if (plugin.isEnabled() && Settings.isSessionsEnabled) { + if (plugin.isEnabled() && service.getProperty(PluginSettings.SESSIONS_ENABLED)) { BukkitTask task = plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() { @Override @@ -98,7 +98,7 @@ public class AsynchronousQuit implements AsynchronousProcess { postLogout(name); } - }, Settings.getSessionTimeout * TICKS_PER_MINUTE); + }, service.getProperty(PluginSettings.SESSIONS_TIMEOUT) * TICKS_PER_MINUTE); sessionManager.addSession(name, task); } else {