Skip to content

Commit

Permalink
Fix for crash detection
Browse files Browse the repository at this point in the history
  • Loading branch information
macarooni-man committed Feb 5, 2025
1 parent d3090b0 commit d93ca03
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/svrmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,19 @@ def format_color(code, *args):


# Server stop log
elif "Stopping server" in line or "Failed to start the minecraft server" in line:
elif "Stopping server" in line:
type_label = "STOP"
type_color = (0.3, 1, 0.6, 1)
self.check_for_deadlock()


# Server fail to start log
elif "Failed to start the minecraft server" in line:
type_label = "FATAL"
type_color = (1, 0.5, 0.65, 1)
self.check_for_deadlock()


# Player join log
elif "logged in with entity id" in message:
uuid = None
Expand Down

0 comments on commit d93ca03

Please sign in to comment.