Dieser Commit ist enthalten in:
Ursprung
297791ec60
Commit
c554d79fec
@ -53,6 +53,7 @@ public class CrashDetector {
|
||||
}
|
||||
|
||||
private void run() {
|
||||
SWException.init();
|
||||
while (run) {
|
||||
long curTime = System.currentTimeMillis();
|
||||
if(curTime - TIMEOUT > lastTick.get()) {
|
||||
|
@ -32,6 +32,10 @@ public class SWException {
|
||||
private static final String cwd = System.getProperty("user.dir");
|
||||
private static final String server = new File(cwd).getName();
|
||||
|
||||
public static void init() {
|
||||
//force class loading
|
||||
}
|
||||
|
||||
public static void log(String message, String stacktrace){
|
||||
StringBuilder msgBuilder = new StringBuilder(message).append("\nPlayers: ");
|
||||
for(Player player : Bukkit.getOnlinePlayers())
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren