mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] Added server closing log
This commit is contained in:
parent
88eaf0b4d8
commit
1b1df35a14
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user