Hotfix BauSystem RamUsage and AutoShutdown
Dieser Commit ist enthalten in:
Ursprung
829e3c64f0
Commit
aa4058d5f9
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren