diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 54f5e95..7ca9c4e 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -43,9 +43,7 @@ public class ScriptListener implements Listener { private Set playerSet = new HashSet<>(); public ScriptListener() { - Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), () -> { - playerSet.clear(); - }, 1, 1); + Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), playerSet::clear, 5, 5); } @EventHandler(priority = EventPriority.HIGH)