2021-04-10 16:33:19 +05:30
|
|
|
|
2021-11-10 17:26:07 +05:30
|
|
|
import ba
|
|
|
|
|
import _ba
|
|
|
|
|
from chatHandle import handlechat
|
|
|
|
|
import setting
|
2021-04-20 20:35:12 +05:30
|
|
|
def filter_chat_message(msg, client_id):
|
2021-11-10 17:26:07 +05:30
|
|
|
|
|
|
|
|
return handlechat.filter_chat_message(msg, client_id)
|
2021-04-02 14:00:25 +05:30
|
|
|
|
2021-04-10 16:33:19 +05:30
|
|
|
|
2021-04-02 14:00:25 +05:30
|
|
|
def on_app_launch():
|
2021-11-10 17:26:07 +05:30
|
|
|
from tools import whitelist
|
|
|
|
|
whitelist.Whitelist()
|
|
|
|
|
bootstraping()
|
2021-04-30 19:13:53 +05:30
|
|
|
|
2021-04-02 14:00:25 +05:30
|
|
|
#something
|
|
|
|
|
|
|
|
|
|
def score_screen_on_begin(_stats):
|
2021-04-07 03:58:40 +05:30
|
|
|
pass
|
2021-04-02 14:00:25 +05:30
|
|
|
#stats
|
|
|
|
|
|
|
|
|
|
def playerspaz_init(player):
|
2021-04-07 03:58:40 +05:30
|
|
|
pass
|
2021-04-02 14:00:25 +05:30
|
|
|
#add tag,rank,effect
|
2021-04-02 20:53:19 +05:30
|
|
|
|
2021-11-10 17:26:07 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def bootstraping():
|
|
|
|
|
print("starting server configuration")
|
|
|
|
|
_ba.disconnect_client=new_disconnect
|
|
|
|
|
settings = setting.get_settings_data()
|
|
|
|
|
_ba.set_server_device_name(settings["HostDeviceName"])
|
|
|
|
|
_ba.set_server_name(settings["HostName"])
|
|
|
|
|
_ba.set_transparent_kickvote(settings["ShowKickVoteStarterName"])
|
|
|
|
|
_ba.set_kickvote_msg_type(settings["KickVoteMsgType"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def new_disconnect(clid,duration=120):
|
|
|
|
|
print("new new_disconnect")
|
|
|
|
|
_ba.ban_client(clid,duration)
|
|
|
|
|
|