From 1631cd848638e0363c19e5f4bb54efa20d916b89 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 24 Nov 2019 19:55:07 +0100 Subject: [PATCH] cleanup --- SpigotCore_Main/src/de/steamwar/core/Core.java | 2 -- SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/Core.java b/SpigotCore_Main/src/de/steamwar/core/Core.java index f71f947..2beb20f 100644 --- a/SpigotCore_Main/src/de/steamwar/core/Core.java +++ b/SpigotCore_Main/src/de/steamwar/core/Core.java @@ -35,8 +35,6 @@ public class Core extends JavaPlugin{ public void onEnable() { Bukkit.getPluginManager().registerEvents(new PlayerJoinedEvent(), this); Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this); - - SWScoreboard.startPlayerBoards(); } @Override diff --git a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java index 5fccaa0..4a12581 100644 --- a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java +++ b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java @@ -68,7 +68,7 @@ public class SWScoreboard { } } - public static void startPlayerBoards() { + static { Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getInstance(), () -> { synchronized (playerBoards) { for(Map.Entry entry : playerBoards.entrySet()) {