[+] Added server closing log

This commit is contained in:
Charles Le Maux 2024-09-10 13:16:16 +02:00
parent 88eaf0b4d8
commit 1b1df35a14

View File

@ -246,6 +246,7 @@ def server_stop(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, Non
exists: bool = mc_manager.stop_server(port)
if exists:
firebase_manager.update_server_running_state(user_id, name, False)
file_manager.log_action(user_id, name, "ServerStop")
return HTTPStatus.OK, f"Successfully stopped server '{name}'."
return HTTPStatus.OK, f"Server '{name}' already stopped."
except Exception as e: