SteamWar/BauSystem
Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-01-08 23:50:07 +01:00
Ursprung 0657ac404b
Commit 3fdb9072f8

Datei anzeigen

@ -6,6 +6,7 @@ import de.steamwar.bausystem.world.BauScoreboard;
import de.steamwar.bausystem.world.RegionListener; import de.steamwar.bausystem.world.RegionListener;
import de.steamwar.bausystem.world.TNTListener; import de.steamwar.bausystem.world.TNTListener;
import de.steamwar.core.CommandRemover; import de.steamwar.core.CommandRemover;
import de.steamwar.scoreboard.SWScoreboard;
import de.steamwar.sql.SteamwarUser; import de.steamwar.sql.SteamwarUser;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.InvalidConfigurationException;
@ -117,6 +118,7 @@ public class BauSystem extends JavaPlugin implements Listener {
@EventHandler @EventHandler
public void onLeave(PlayerQuitEvent e) { public void onLeave(PlayerQuitEvent e) {
SWScoreboard.removeScoreboard(e.getPlayer());
if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(e.getPlayer()))) if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(e.getPlayer())))
Bukkit.shutdown(); Bukkit.shutdown();
} }