mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-06-18 14:41:21 +00:00
BEAMP -> BeamMP
This commit is contained in:
@@ -67,13 +67,13 @@ ev.builtins_hook()
|
||||
log.info(i18n.hello)
|
||||
log.info(i18n.config_path.format(config_path))
|
||||
|
||||
log.debug("Initializing BEAMP Server system...")
|
||||
log.debug("Initializing BeamMP Server system...")
|
||||
# Key handler..
|
||||
if not config.Auth['private'] and not config.Auth['key']:
|
||||
log.warn(i18n.auth_need_key)
|
||||
url = "https://beammp.com/k/keys"
|
||||
if shortcuts.yes_no_dialog(
|
||||
title='BEAMP Server Key',
|
||||
title='BeamMP Server Key',
|
||||
text=i18n.GUI_need_key_message,
|
||||
yes_text=i18n.GUI_yes,
|
||||
no_text=i18n.GUI_no).run():
|
||||
@@ -84,12 +84,12 @@ if not config.Auth['private'] and not config.Auth['key']:
|
||||
log.error(i18n.auth_cannot_open_browser.format(e))
|
||||
log.info(i18n.auth_use_link.format(url))
|
||||
shortcuts.message_dialog(
|
||||
title='BEAMP Server Key',
|
||||
title='BeamMP Server Key',
|
||||
text=i18n.GUI_cannot_open_browser.format(url),
|
||||
ok_text=i18n.GUI_ok).run()
|
||||
|
||||
config.Auth['key'] = shortcuts.input_dialog(
|
||||
title='BEAMP Server Key',
|
||||
title='BeamMP Server Key',
|
||||
text=i18n.GUI_enter_key_message,
|
||||
ok_text=i18n.GUI_ok,
|
||||
cancel_text=i18n.GUI_cancel).run()
|
||||
|
||||
+3
-3
@@ -61,7 +61,7 @@ class Client:
|
||||
async def tcp_send(self, data):
|
||||
|
||||
# TNetwork.cpp; Line: 383
|
||||
# BEAMP TCP protocol sends a header of 4 bytes, followed by the data.
|
||||
# BeamMP TCP protocol sends a header of 4 bytes, followed by the data.
|
||||
# [][][][][][]...[]
|
||||
# ^------^^---...-^
|
||||
# size data
|
||||
@@ -160,7 +160,7 @@ class Core:
|
||||
self.web_stop = None
|
||||
|
||||
self.client_major_version = "2.0"
|
||||
self.BEAMP_version = "3.2.0"
|
||||
self.BeamMP_version = "3.2.0"
|
||||
|
||||
def get_client(self, sock=None, cid=None):
|
||||
if cid:
|
||||
@@ -224,7 +224,7 @@ class Core:
|
||||
while self.run:
|
||||
data = {"uuid": config.Auth["key"], "players": len(self.clients), "maxplayers": config.Game["players"],
|
||||
"port": config.Server["server_port"], "map": f"/levels/{config.Game['map']}/info.json",
|
||||
"private": config.Auth['private'], "version": self.BEAMP_version,
|
||||
"private": config.Auth['private'], "version": self.BeamMP_version,
|
||||
"clientversion": self.client_major_version,
|
||||
"name": config.Server["name"], "modlist": modlist, "modstotalsize": modstotalsize,
|
||||
"modstotal": modstotal, "playerslist": "", "desc": config.Server['description'], "pass": False}
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ class Core:
|
||||
self.web_thread: Thread = None
|
||||
self.web_stop: Callable = lambda: None
|
||||
self.client_major_version = "2.0"
|
||||
self.BEAMP_version = "3.2.0"
|
||||
self.BeamMP_version = "3.2.0"
|
||||
def insert_client(self, client: Client) -> None: ...
|
||||
def create_client(self, *args, **kwargs) -> Client: ...
|
||||
async def check_alive(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user