mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +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
|
assert babase.app.classic is not None
|
||||||
|
|
||||||
command = pickle.loads(command_data)
|
command = pickle.loads(command_data)
|
||||||
print("server mode got command")
|
|
||||||
print(command)
|
|
||||||
assert isinstance(command, ServerCommand)
|
assert isinstance(command, ServerCommand)
|
||||||
|
|
||||||
if isinstance(command, StartServerModeCommand):
|
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
|
# Build number and version of the ballistica binary we expect to be
|
||||||
# using.
|
# using.
|
||||||
TARGET_BALLISTICA_BUILD = 21212
|
TARGET_BALLISTICA_BUILD = 21213
|
||||||
TARGET_BALLISTICA_VERSION = '1.7.26'
|
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'],
|
'tint_color': info['tint_color'],
|
||||||
'tint2_color': info['tint2_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:
|
def filter_chat_message(msg: str, client_id: int) -> str | None:
|
||||||
|
try:
|
||||||
|
import custom_hooks as chooks
|
||||||
|
except:
|
||||||
|
pass
|
||||||
"""Intercept/filter chat messages.
|
"""Intercept/filter chat messages.
|
||||||
|
|
||||||
Called for all chat messages while hosting.
|
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)
|
return chooks.filter_chat_message(msg,client_id)
|
||||||
except:
|
except:
|
||||||
return msg
|
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:
|
def local_chat_message(msg: str) -> None:
|
||||||
classic = babase.app.classic
|
classic = babase.app.classic
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,6 @@ class PluginWindow(bui.Window):
|
||||||
def _show_plugins(self) -> None:
|
def _show_plugins(self) -> None:
|
||||||
# pylint: disable=too-many-locals
|
# pylint: disable=too-many-locals
|
||||||
# pylint: disable=too-many-branches
|
# pylint: disable=too-many-branches
|
||||||
# pylint: disable=too-many-statements
|
|
||||||
plugspecs = bui.app.plugins.plugin_specs
|
plugspecs = bui.app.plugins.plugin_specs
|
||||||
plugstates: dict[str, dict] = bui.app.config.setdefault('Plugins', {})
|
plugstates: dict[str, dict] = bui.app.config.setdefault('Plugins', {})
|
||||||
assert isinstance(plugstates, dict)
|
assert isinstance(plugstates, dict)
|
||||||
|
|
@ -301,7 +300,6 @@ class PluginWindow(bui.Window):
|
||||||
else:
|
else:
|
||||||
# Make sure we handle all cases.
|
# Make sure we handle all cases.
|
||||||
assert_never(self._category)
|
assert_never(self._category)
|
||||||
sub_height = 0
|
|
||||||
|
|
||||||
num_shown = 0
|
num_shown = 0
|
||||||
for classpath, plugspec in plugspecs_sorted:
|
for classpath, plugspec in plugspecs_sorted:
|
||||||
|
|
@ -316,7 +314,7 @@ class PluginWindow(bui.Window):
|
||||||
show = not enabled
|
show = not enabled
|
||||||
else:
|
else:
|
||||||
assert_never(self._category)
|
assert_never(self._category)
|
||||||
show = False
|
# show = False
|
||||||
|
|
||||||
if not show:
|
if not show:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue