SteamWar/BauSystem
Archiviert
13
0

Hotfix BauSystem RamUsage and AutoShutdown

Dieser Commit ist enthalten in:
yoyosource 2021-04-03 08:39:56 +02:00
Ursprung 829e3c64f0
Commit aa4058d5f9

Datei anzeigen

@ -161,11 +161,13 @@ public class BauSystem extends JavaPlugin implements Listener {
if (autoShutdown != null) {
autoShutdown.cancel();
}
System.out.println("INIT AutoShutdown");
autoShutdown = Bukkit.getScheduler().runTaskTimer(this, new Runnable() {
int count = 0;
@Override
public void run() {
System.out.println("RUN AutoShutdown " + count);
if (count >= 300) {
Bukkit.shutdown();
return;