fix: run world unload task every 10 seconds, not 1 second

- Every second meant worlds would be unloaded whilst a player attempted to teleport to it
This commit is contained in:
dordsor21 2023-09-06 17:09:01 +01:00
parent e9a19e0821
commit 7884c91d52
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -550,7 +550,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
this.startMetrics();
if (Settings.Enabled_Components.WORLDS) {
TaskManager.getPlatformImplementation().taskRepeat(this::unload, TaskTime.seconds(1L));
TaskManager.getPlatformImplementation().taskRepeat(this::unload, TaskTime.seconds(60L));
try {
singleWorldListener = injector().getInstance(SingleWorldListener.class);
Bukkit.getPluginManager().registerEvents(singleWorldListener, this);