mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
syncing ba_data
added kcik_vote_started in _hooks
This commit is contained in:
parent
6216752a83
commit
ac44a78075
4 changed files with 9 additions and 11 deletions
2
dist/ba_data/python/baclassic/_servermode.py
vendored
2
dist/ba_data/python/baclassic/_servermode.py
vendored
|
|
@ -35,8 +35,6 @@ def _cmd(command_data: bytes) -> None:
|
|||
assert babase.app.classic is not None
|
||||
|
||||
command = pickle.loads(command_data)
|
||||
print("server mode got command")
|
||||
print(command)
|
||||
assert isinstance(command, ServerCommand)
|
||||
|
||||
if isinstance(command, StartServerModeCommand):
|
||||
|
|
|
|||
2
dist/ba_data/python/baenv.py
vendored
2
dist/ba_data/python/baenv.py
vendored
|
|
@ -52,7 +52,7 @@ if TYPE_CHECKING:
|
|||
|
||||
# Build number and version of the ballistica binary we expect to be
|
||||
# using.
|
||||
TARGET_BALLISTICA_BUILD = 21212
|
||||
TARGET_BALLISTICA_BUILD = 21213
|
||||
TARGET_BALLISTICA_VERSION = '1.7.26'
|
||||
|
||||
|
||||
|
|
|
|||
12
dist/ba_data/python/bascenev1/_hooks.py
vendored
12
dist/ba_data/python/bascenev1/_hooks.py
vendored
|
|
@ -31,11 +31,12 @@ def get_player_icon(sessionplayer: bascenev1.SessionPlayer) -> dict[str, Any]:
|
|||
'tint_color': info['tint_color'],
|
||||
'tint2_color': info['tint2_color'],
|
||||
}
|
||||
try:
|
||||
import custom_hooks as chooks
|
||||
except:
|
||||
pass
|
||||
|
||||
def filter_chat_message(msg: str, client_id: int) -> str | None:
|
||||
try:
|
||||
import custom_hooks as chooks
|
||||
except:
|
||||
pass
|
||||
"""Intercept/filter chat messages.
|
||||
|
||||
Called for all chat messages while hosting.
|
||||
|
|
@ -47,7 +48,8 @@ def filter_chat_message(msg: str, client_id: int) -> str | None:
|
|||
return chooks.filter_chat_message(msg,client_id)
|
||||
except:
|
||||
return msg
|
||||
|
||||
def kick_vote_started(by:str,to:str) -> None:
|
||||
print("kick vot started by"+by+" to"+to)
|
||||
|
||||
def local_chat_message(msg: str) -> None:
|
||||
classic = babase.app.classic
|
||||
|
|
|
|||
|
|
@ -263,7 +263,6 @@ class PluginWindow(bui.Window):
|
|||
def _show_plugins(self) -> None:
|
||||
# pylint: disable=too-many-locals
|
||||
# pylint: disable=too-many-branches
|
||||
# pylint: disable=too-many-statements
|
||||
plugspecs = bui.app.plugins.plugin_specs
|
||||
plugstates: dict[str, dict] = bui.app.config.setdefault('Plugins', {})
|
||||
assert isinstance(plugstates, dict)
|
||||
|
|
@ -301,7 +300,6 @@ class PluginWindow(bui.Window):
|
|||
else:
|
||||
# Make sure we handle all cases.
|
||||
assert_never(self._category)
|
||||
sub_height = 0
|
||||
|
||||
num_shown = 0
|
||||
for classpath, plugspec in plugspecs_sorted:
|
||||
|
|
@ -316,7 +314,7 @@ class PluginWindow(bui.Window):
|
|||
show = not enabled
|
||||
else:
|
||||
assert_never(self._category)
|
||||
show = False
|
||||
# show = False
|
||||
|
||||
if not show:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue