mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Use config editInstanceRemovalDelay values
This commit is contained in:
parent
d62460bbe0
commit
f491c53e33
@ -163,7 +163,7 @@ public class DEditWorld extends DInstanceWorld implements EditWorld {
|
|||||||
DResourceWorld.deleteUnusedFiles(getResource().getFolder());
|
DResourceWorld.deleteUnusedFiles(getResource().getFolder());
|
||||||
FileUtil.removeDir(getFolder());
|
FileUtil.removeDir(getFolder());
|
||||||
}
|
}
|
||||||
}.runTaskLaterAsynchronously(plugin, 200L);
|
}.runTaskLaterAsynchronously(plugin, plugin.getMainConfig().getEditInstanceRemovalDelay() * 20L);
|
||||||
}
|
}
|
||||||
if (!save) {
|
if (!save) {
|
||||||
Bukkit.unloadWorld(getWorld(), /* SPIGOT-5225 */ !Version.isAtLeast(Version.MC1_14_4));
|
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() {
|
public void run() {
|
||||||
FileUtil.removeDir(getFolder());
|
FileUtil.removeDir(getFolder());
|
||||||
}
|
}
|
||||||
}.runTaskLaterAsynchronously(plugin, 200L);
|
}.runTaskLaterAsynchronously(plugin, plugin.getMainConfig().getEditInstanceRemovalDelay() * 20L);
|
||||||
}
|
}
|
||||||
|
|
||||||
getResource().editWorld = null;
|
getResource().editWorld = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user