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) {
|
if (autoShutdown != null) {
|
||||||
autoShutdown.cancel();
|
autoShutdown.cancel();
|
||||||
}
|
}
|
||||||
|
System.out.println("INIT AutoShutdown");
|
||||||
autoShutdown = Bukkit.getScheduler().runTaskTimer(this, new Runnable() {
|
autoShutdown = Bukkit.getScheduler().runTaskTimer(this, new Runnable() {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
System.out.println("RUN AutoShutdown " + count);
|
||||||
if (count >= 300) {
|
if (count >= 300) {
|
||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren