mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
Español nomas
This commit is contained in:
parent
3f02a444ee
commit
11b2e159b2
4 changed files with 11 additions and 11 deletions
|
|
@ -64,14 +64,14 @@ session_max_players_override = 10
|
||||||
# Options here are 'ffa' (free-for-all), 'teams' and 'coop'
|
# Options here are 'ffa' (free-for-all), 'teams' and 'coop'
|
||||||
# (cooperative) This value is ignored if you supply a playlist_code
|
# (cooperative) This value is ignored if you supply a playlist_code
|
||||||
# (see below).
|
# (see below).
|
||||||
session_type = "ffa"
|
#session_type = "ffa"
|
||||||
|
|
||||||
# Playlist-code for teams or free-for-all mode sessions.
|
# Playlist-code for teams or free-for-all mode sessions.
|
||||||
# To host your own custom playlists, use the 'share' functionality in the
|
# To host your own custom playlists, use the 'share' functionality in the
|
||||||
# playlist editor in the regular version of the game.
|
# playlist editor in the regular version of the game.
|
||||||
# This will give you a numeric code you can enter here to host that
|
# This will give you a numeric code you can enter here to host that
|
||||||
# playlist.
|
# playlist.
|
||||||
#playlist_code = 501330
|
playlist_code = 501330
|
||||||
|
|
||||||
# Alternately, you can embed playlist data here instead of using
|
# Alternately, you can embed playlist data here instead of using
|
||||||
# codes. Make sure to set session_type to the correct type for the
|
# codes. Make sure to set session_type to the correct type for the
|
||||||
|
|
|
||||||
|
|
@ -39,12 +39,12 @@ def ExcelCommand(command, arguments, clientid, accountid):
|
||||||
get_ping(arguments, clientid)
|
get_ping(arguments, clientid)
|
||||||
|
|
||||||
elif command in ['discord', 'dc', 'ds', 'dis']:
|
elif command in ['discord', 'dc', 'ds', 'dis']:
|
||||||
show_discord()
|
show_discord(clientid)
|
||||||
|
|
||||||
|
|
||||||
def show_discord():
|
def show_discord(clientid):
|
||||||
try:
|
try:
|
||||||
send('https://discord.gg/RUzsHEKseq')
|
send('https://discord.gg/RUzsHEKseq', clientid)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ def get_ping(arguments, clientid):
|
||||||
name = player.getname(full=True, icon=False),
|
name = player.getname(full=True, icon=False),
|
||||||
if player.inputdevice.client_id == int(arguments[0]):
|
if player.inputdevice.client_id == int(arguments[0]):
|
||||||
ping = _bascenev1.get_client_ping(int(arguments[0]))
|
ping = _bascenev1.get_client_ping(int(arguments[0]))
|
||||||
send(f" {name}'s ping {ping}ms", clientid)
|
send(f"El ping de {name} es {ping}ms", clientid)
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -121,7 +121,7 @@ def accountid_request(arguments, clientid, accountid):
|
||||||
"""Returns The Account Id Of Players"""
|
"""Returns The Account Id Of Players"""
|
||||||
|
|
||||||
if arguments == [] or arguments == ['']:
|
if arguments == [] or arguments == ['']:
|
||||||
send(f"Your account id is {accountid} ", clientid)
|
send(f"La id de tu cuenta es: {accountid} ", clientid)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
@ -131,6 +131,6 @@ def accountid_request(arguments, clientid, accountid):
|
||||||
name = player.getname(full=True, icon=True)
|
name = player.getname(full=True, icon=True)
|
||||||
accountid = player.get_v1_account_id()
|
accountid = player.get_v1_account_id()
|
||||||
|
|
||||||
send(f" {name}'s account id is '{accountid}' ", clientid)
|
send(f"La id de la cuenta de {name} es: '{accountid}' ", clientid)
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
4
dist/ba_root/mods/custom_hooks.py
vendored
4
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -334,11 +334,11 @@ def shutdown(func) -> None:
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
# add screen text and tell players we are going to restart soon.
|
# add screen text and tell players we are going to restart soon.
|
||||||
bs.chatmessage(
|
bs.chatmessage(
|
||||||
"Server will restart on next opportunity. (series end)")
|
"El server se reiniciará al final de la serie.")
|
||||||
_babase.restart_scheduled = True
|
_babase.restart_scheduled = True
|
||||||
bs.get_foreground_host_activity().restart_msg = bs.newnode('text',
|
bs.get_foreground_host_activity().restart_msg = bs.newnode('text',
|
||||||
attrs={
|
attrs={
|
||||||
'text': "Server going to restart after this series.",
|
'text': "El server se reiniciará al final de la serie.",
|
||||||
'flatness': 1.0,
|
'flatness': 1.0,
|
||||||
'h_align': 'right',
|
'h_align': 'right',
|
||||||
'v_attach': 'bottom',
|
'v_attach': 'bottom',
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class BsDataThread(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
global stats
|
global stats
|
||||||
stats["name"] = _babase.app.classic.server._config.party_name
|
stats["name"] = _babase.app.classic.server._config.party_name
|
||||||
stats["discord"] = "https://discord.gg/ucyaesh"
|
stats["discord"] = "https://discord.gg/RUzsHEKseq"
|
||||||
stats["vapidKey"] = notification_manager.get_vapid_keys()["public_key"]
|
stats["vapidKey"] = notification_manager.get_vapid_keys()["public_key"]
|
||||||
|
|
||||||
self.refresh_stats_cache_timer = bs.AppTimer(8, babase.Call(
|
self.refresh_stats_cache_timer = bs.AppTimer(8, babase.Call(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue