SteamWar/BauSystem
Archiviert
13
0

Hotfix (try) of MethodNotFound error

Dieser Commit ist enthalten in:
Lixfel 2020-01-20 18:16:15 +01:00
Ursprung 4d8781a39b
Commit ba9f27ba61

Datei anzeigen

@ -254,8 +254,9 @@ public class BauSystem extends JavaPlugin implements Listener {
@EventHandler @EventHandler
public void onLeave(PlayerQuitEvent e) { public void onLeave(PlayerQuitEvent e) {
SWScoreboard.removeScoreboard(e.getPlayer()); Player player = e.getPlayer();
if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(e.getPlayer()))) SWScoreboard.removeScoreboard(player);
if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(player)))
Bukkit.shutdown(); Bukkit.shutdown();
} }
} }