mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
logging , whitelist, auto check updates
This commit is contained in:
parent
fdde68b525
commit
21e8571d74
181 changed files with 172 additions and 193 deletions
24
dist/ba_root/mods/custom_hooks.py
vendored
24
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -18,6 +18,9 @@ from bastd.activity import drawscore
|
|||
from bastd.actor.zoomtext import ZoomText
|
||||
from tools import TeamBalancer
|
||||
from bastd.activity.coopscore import CoopScoreScreen
|
||||
from ba import _hooks
|
||||
from tools import Logger
|
||||
from playersData import pdata
|
||||
# from bastd.activity.multiteamvictory import
|
||||
# from tools import fireflies
|
||||
settings = setting.get_settings_data()
|
||||
|
|
@ -28,8 +31,6 @@ def filter_chat_message(msg, client_id):
|
|||
|
||||
|
||||
def on_app_launch():
|
||||
from tools import whitelist
|
||||
whitelist.Whitelist()
|
||||
bootstraping()
|
||||
servercheck.checkserver().start()
|
||||
ServerUpdate.check()
|
||||
|
|
@ -64,6 +65,9 @@ def bootstraping():
|
|||
elPatronPowerups.enable()
|
||||
if settings["mikirogQuickTurn"]["enable"]:
|
||||
from tools import wavedash
|
||||
|
||||
if settings["whitelist"]:
|
||||
pdata.loadWhitelist()
|
||||
|
||||
|
||||
|
||||
|
|
@ -127,4 +131,18 @@ if settings["newResultBoard"]:
|
|||
drawscore.DrawScoreScreenActivity=newdts.DrawScoreScreenActivity
|
||||
|
||||
def scoreScreenBegin():
|
||||
TeamBalancer.balanceTeams()
|
||||
TeamBalancer.balanceTeams()
|
||||
|
||||
|
||||
def kick_vote_started(by,to):
|
||||
Logger.log(by+" started kick vote for "+to)
|
||||
|
||||
_hooks.kick_vote_started=kick_vote_started
|
||||
|
||||
def on_kicked(id):
|
||||
Logger.log(id+" kicked by kickvotes")
|
||||
|
||||
_hooks.on_kicked=on_kicked
|
||||
|
||||
def on_kick_vote_end():
|
||||
Logger.log("Kick vote End")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue