mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
python3.9,removed windows build,kick vote,ban mute commands , rjcd
This commit is contained in:
parent
94bdfb531a
commit
dbe040a017
2453 changed files with 3797 additions and 437553 deletions
33
dist/ba_root/mods/custom_hooks.py
vendored
33
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -1,13 +1,17 @@
|
|||
from chatHandle import handlechat
|
||||
|
||||
import ba
|
||||
import _ba
|
||||
from chatHandle import handlechat
|
||||
import setting
|
||||
def filter_chat_message(msg, client_id):
|
||||
|
||||
return handlechat.filter_chat_message(msg, client_id)
|
||||
|
||||
return handlechat.filter_chat_message(msg, client_id)
|
||||
|
||||
|
||||
def on_app_launch():
|
||||
from tools import whitelist
|
||||
whitelist.Whitelist()
|
||||
from tools import whitelist
|
||||
whitelist.Whitelist()
|
||||
bootstraping()
|
||||
|
||||
#something
|
||||
|
||||
|
|
@ -19,3 +23,22 @@ def playerspaz_init(player):
|
|||
pass
|
||||
#add tag,rank,effect
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue