Dieser Commit ist enthalten in:
Ursprung
b673dffe4c
Commit
d2a4f1a329
@ -50,7 +50,7 @@ public class CrashDetector {
|
||||
private void run() {
|
||||
while (run) {
|
||||
long curTime = System.currentTimeMillis();
|
||||
if(curTime > lastTick.get() + TIMEOUT) {
|
||||
if(curTime - TIMEOUT > lastTick.get()) {
|
||||
SWException.log(Bukkit.getServer().getVersion() + " server hung for " + (curTime - lastTick.get()) + "ms, ", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n")));
|
||||
lastTick.set(curTime);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren