diff --git a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java index c4329fbb..63b52115 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java @@ -29,10 +29,12 @@ import de.steamwar.bausystem.worlddata.WorldData; import de.steamwar.message.Message; import de.steamwar.scoreboard.SWScoreboard; import lombok.Getter; +import net.minecraft.world.level.block.entity.TileEntityJigsaw; import org.bukkit.Bukkit; import org.bukkit.World; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; +import org.spigotmc.WatchdogThread; import java.io.File; import java.io.IOException; @@ -81,6 +83,23 @@ public class BauSystem extends JavaPlugin implements Listener { new Updater(RegionLoader.file, RegionLoader::load); LinkageUtils.link(); + + // This could disable any watchdog stuff. We need to investigate if this is a problem. + /* + Thread thread = new Thread(() -> { + while (true) { + WatchdogThread.tick(); + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } + } + }); + thread.setName("WatchdogThread ticker"); + thread.setDaemon(true); + thread.start(); + */ } @Override