Commits vergleichen
1 Commits
Autor | SHA1 | Datum | |
---|---|---|---|
|
7400db0723 |
@ -31,8 +31,6 @@ import org.bukkit.event.player.PlayerLoginEvent;
|
|||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
import org.bukkit.scheduler.BukkitTask;
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
@Linked
|
@Linked
|
||||||
public class AutoShutdownListener implements Listener {
|
public class AutoShutdownListener implements Listener {
|
||||||
|
|
||||||
@ -58,7 +56,7 @@ public class AutoShutdownListener implements Listener {
|
|||||||
autoShutdown.cancel();
|
autoShutdown.cancel();
|
||||||
}
|
}
|
||||||
TPSLimitUtils.setTPS(20.0);
|
TPSLimitUtils.setTPS(20.0);
|
||||||
if (true) {
|
if (false) {
|
||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -71,14 +69,6 @@ public class AutoShutdownListener implements Listener {
|
|||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
if (RamUsage.getUsage() > 0.8) {
|
|
||||||
Bukkit.shutdown();
|
|
||||||
}
|
|
||||||
} catch (Throwable throwable) {
|
|
||||||
Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable);
|
|
||||||
Bukkit.shutdown();
|
|
||||||
}
|
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}, 20, 20);
|
}, 20, 20);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren