Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
4e6fa7cd42
Commit
248c3a17c6
@ -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