From 8b48e936fbf165028034e2a25174d83e05ebd734 Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Tue, 21 Jul 2015 01:17:24 +0200 Subject: [PATCH] Use our own thread --- src/main/java/fr/xephi/authme/AuthMe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index f9434a76f..1c2d964bd 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -788,7 +788,8 @@ public class AuthMe extends JavaPlugin { if (Settings.getDataSource == DataSource.DataSourceType.FILE) { Converter converter = new ForceFlatToSqlite(database, this); - Bukkit.getScheduler().runTaskAsynchronously(this, converter); + Thread t = new Thread(converter); + t.start(); ConsoleLogger.showError("FlatFile backend as been detected and is now deprecated, next time server startup, it will be changed to SQLite... Conversion will be started Asynchronously, it will not drop down your performances !"); ConsoleLogger.showError("If you want to keep FlatFile, set file again into config at backend, but this message and this change will appear again at the next restart"); }