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.scheduler.BukkitTask;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
@Linked
|
||||
public class AutoShutdownListener implements Listener {
|
||||
|
||||
@ -58,7 +56,7 @@ public class AutoShutdownListener implements Listener {
|
||||
autoShutdown.cancel();
|
||||
}
|
||||
TPSLimitUtils.setTPS(20.0);
|
||||
if (true) {
|
||||
if (false) {
|
||||
Bukkit.shutdown();
|
||||
return;
|
||||
}
|
||||
@ -71,14 +69,6 @@ public class AutoShutdownListener implements Listener {
|
||||
Bukkit.shutdown();
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if (RamUsage.getUsage() > 0.8) {
|
||||
Bukkit.shutdown();
|
||||
}
|
||||
} catch (Throwable throwable) {
|
||||
Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable);
|
||||
Bukkit.shutdown();
|
||||
}
|
||||
count++;
|
||||
}
|
||||
}, 20, 20);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren