Update custom_hooks.py

This commit is contained in:
Ayush Saini 2022-12-25 01:26:04 +05:30
parent 0610d132f2
commit 7543afe0f0

View file

@ -89,6 +89,7 @@ def bootstraping():
_ba.set_server_name(settings["HostName"])
_ba.set_transparent_kickvote(settings["ShowKickVoteStarterName"])
_ba.set_kickvote_msg_type(settings["KickVoteMsgType"])
_ba.hide_player_device_id(settings["Anti-IdRevealer"])
# check for auto update stats
_thread.start_new_thread(mystats.refreshStats, ())
@ -122,6 +123,8 @@ def bootstraping():
if settings["whitelist"]:
pdata.load_white_list()
#
import_discord_bot()
import_games()
import_dual_team_score()
@ -183,6 +186,7 @@ org_end = ba._activity.Activity.end
def new_end(self, results: Any = None, delay: float = 0.0, force: bool = False):
"""Runs when game is ended."""
activity = _ba.get_foreground_host_activity()
_ba.prop_axis(1,0,0)
if isinstance(activity, CoopScoreScreen):
team_balancer.checkToExitCoop()
org_end(self, results, delay, force)