From f491c53e33db18e2ae07a5ce9d82da0fab953b6c Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Mon, 20 Apr 2020 21:21:46 +0200 Subject: [PATCH] Use config editInstanceRemovalDelay values --- .../src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java b/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java index 7df6e6e4..968db10e 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java +++ b/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java @@ -163,7 +163,7 @@ public class DEditWorld extends DInstanceWorld implements EditWorld { DResourceWorld.deleteUnusedFiles(getResource().getFolder()); FileUtil.removeDir(getFolder()); } - }.runTaskLaterAsynchronously(plugin, 200L); + }.runTaskLaterAsynchronously(plugin, plugin.getMainConfig().getEditInstanceRemovalDelay() * 20L); } if (!save) { Bukkit.unloadWorld(getWorld(), /* SPIGOT-5225 */ !Version.isAtLeast(Version.MC1_14_4)); @@ -172,7 +172,7 @@ public class DEditWorld extends DInstanceWorld implements EditWorld { public void run() { FileUtil.removeDir(getFolder()); } - }.runTaskLaterAsynchronously(plugin, 200L); + }.runTaskLaterAsynchronously(plugin, plugin.getMainConfig().getEditInstanceRemovalDelay() * 20L); } getResource().editWorld = null;