Fix log messages
Dieser Commit ist enthalten in:
Ursprung
aa4058d5f9
Commit
55435c7d18
@ -42,10 +42,6 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.scheduler.BukkitTask;
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.lang.management.ManagementFactory;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
@ -161,13 +157,12 @@ 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);
|
Bukkit.getLogger().log(Level.INFO, "RUN AutoShutdown " + count);
|
||||||
if (count >= 300) {
|
if (count >= 300) {
|
||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
return;
|
return;
|
||||||
@ -178,7 +173,6 @@ public class BauSystem extends JavaPlugin implements Listener {
|
|||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
}
|
}
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
throwable.printStackTrace();
|
|
||||||
Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable);
|
Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable);
|
||||||
Bukkit.shutdown();
|
Bukkit.shutdown();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren