mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
Added option to enable/disable ballistica web.
This commit is contained in:
parent
34b17b8ee2
commit
e381ec853c
3 changed files with 7 additions and 3 deletions
6
dist/ba_root/mods/bcs_plugin.py
vendored
6
dist/ba_root/mods/bcs_plugin.py
vendored
|
|
@ -132,12 +132,12 @@ def get_top200():
|
||||||
return json.dumps(top200)
|
return json.dumps(top200)
|
||||||
|
|
||||||
|
|
||||||
# ba_meta export plugin
|
class InitalRun:
|
||||||
class InitalRun(ba.Plugin):
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
print("start flask")
|
print("start flask")
|
||||||
flask_run = _thread.start_new_thread(app.run, ("0.0.0.0",80,False ))
|
flask_run = _thread.start_new_thread(app.run, ("0.0.0.0",80,False ))
|
||||||
|
|
||||||
|
def enable():
|
||||||
|
InitalRun()
|
||||||
# SAMPLE OUTPUT
|
# SAMPLE OUTPUT
|
||||||
# {'system': {'cpu': 80, 'ram': 34}, 'roster': {}, 'chats': [], 'playlist': {'current': 'Meteor Shower @ Rampage', 'next': 'Assault @ Step Right Up'}, 'teamInfo': {'sessionType': 'DualTeamSession', 0: {'name': 'Blue', 'color': (0.1, 0.25, 1.0), 'score': 1, 'players': [{'name': 'Jolly', 'device_id': '\ue030PC295588', 'inGame': True, 'character': 'xmas', 'account_id': 'pb-IF4TVWwZUQ=='}]}, 1: {'name': 'Red', 'color': (1.0, 0.25, 0.2), 'score': 0, 'players': []}}}
|
# {'system': {'cpu': 80, 'ram': 34}, 'roster': {}, 'chats': [], 'playlist': {'current': 'Meteor Shower @ Rampage', 'next': 'Assault @ Step Right Up'}, 'teamInfo': {'sessionType': 'DualTeamSession', 0: {'name': 'Blue', 'color': (0.1, 0.25, 1.0), 'score': 1, 'players': [{'name': 'Jolly', 'device_id': '\ue030PC295588', 'inGame': True, 'character': 'xmas', 'account_id': 'pb-IF4TVWwZUQ=='}]}, 1: {'name': 'Red', 'color': (1.0, 0.25, 0.2), 'score': 0, 'players': []}}}
|
||||||
3
dist/ba_root/mods/custom_hooks.py
vendored
3
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -80,6 +80,9 @@ def bootstraping():
|
||||||
elPatronPowerups.enable()
|
elPatronPowerups.enable()
|
||||||
if settings["mikirogQuickTurn"]["enable"]:
|
if settings["mikirogQuickTurn"]["enable"]:
|
||||||
from plugins import wavedash # pylint: disable=unused-import
|
from plugins import wavedash # pylint: disable=unused-import
|
||||||
|
if settings["ballistica_web"]["enable"]:
|
||||||
|
import bcs_plugin
|
||||||
|
bcs_plugin.enable()
|
||||||
|
|
||||||
# import features
|
# import features
|
||||||
if settings["whitelist"]:
|
if settings["whitelist"]:
|
||||||
|
|
|
||||||
1
dist/ba_root/mods/setting.json
vendored
1
dist/ba_root/mods/setting.json
vendored
|
|
@ -43,6 +43,7 @@
|
||||||
"mikirogQuickTurn":{
|
"mikirogQuickTurn":{
|
||||||
"enable":true
|
"enable":true
|
||||||
},
|
},
|
||||||
|
"ballistica_web": true,
|
||||||
"elPatronPowerups":{
|
"elPatronPowerups":{
|
||||||
"enable":true,
|
"enable":true,
|
||||||
"settings":{"Powers Gravity": true,
|
"settings":{"Powers Gravity": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue