SteamWar/BauSystem
Archiviert
13
0

Add shutdown of bau after one minute no player

Dieser Commit ist enthalten in:
yoyosource 2021-04-02 16:16:25 +02:00
Ursprung a7e07cb947
Commit 94fd196a08

Datei anzeigen

@ -165,7 +165,7 @@ public class BauSystem extends JavaPlugin implements Listener {
Player p = e.getPlayer();
SWScoreboard.removeScoreboard(p);
if (Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(p))) {
Bukkit.shutdown();
autoShutdown = Bukkit.getScheduler().runTaskLater(this, Bukkit::shutdown, 1200);
}
}