Dieser Commit ist enthalten in:
Ursprung
7639a6ad46
Commit
b673dffe4c
@ -50,7 +50,7 @@ public class CrashDetector {
|
||||
private void run() {
|
||||
while (run) {
|
||||
long curTime = System.currentTimeMillis();
|
||||
if(curTime + TIMEOUT > lastTick.get()) {
|
||||
if(curTime > lastTick.get() + TIMEOUT) {
|
||||
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