From 3fdb9072f8b39868ec72122ccacdb5ea041b52ea Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Wed, 8 Jan 2020 23:50:07 +0100 Subject: [PATCH] hotfix --- BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java index d67bbf3..cd4ccb3 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java @@ -6,6 +6,7 @@ import de.steamwar.bausystem.world.BauScoreboard; import de.steamwar.bausystem.world.RegionListener; import de.steamwar.bausystem.world.TNTListener; import de.steamwar.core.CommandRemover; +import de.steamwar.scoreboard.SWScoreboard; import de.steamwar.sql.SteamwarUser; import org.bukkit.Bukkit; import org.bukkit.configuration.InvalidConfigurationException; @@ -117,6 +118,7 @@ public class BauSystem extends JavaPlugin implements Listener { @EventHandler public void onLeave(PlayerQuitEvent e) { + SWScoreboard.removeScoreboard(e.getPlayer()); if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(e.getPlayer()))) Bukkit.shutdown(); }