From 7884c91d5295a4054b7474ef1e0ffed91d32a347 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 6 Sep 2023 17:09:01 +0100 Subject: [PATCH] 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 --- Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java index 2b05b9742..ccb449e7b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java @@ -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);