mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
Updating a few unfixed Errors
This commit is contained in:
parent
a215066bba
commit
f8d8c479f9
5 changed files with 27 additions and 27 deletions
6
dist/ba_root/mods/features/EndVote.py
vendored
6
dist/ba_root/mods/features/EndVote.py
vendored
|
|
@ -24,7 +24,7 @@ def vote_end(pb_id, client_id):
|
|||
clients=[client_id])
|
||||
return
|
||||
if len(voters) == 0:
|
||||
_ba.chatmessage("end vote started")
|
||||
ba.internal.chatmessage("end vote started")
|
||||
|
||||
# clean up voters list
|
||||
active_players = []
|
||||
|
|
@ -40,10 +40,10 @@ def vote_end(pb_id, client_id):
|
|||
update_vote_text(required_votes(len(active_players)) - len(voters))
|
||||
if required_votes(len(active_players)) - len(
|
||||
voters) == 3: # lets dont spam chat/screen message with votes required , only give message when only 3 votes left
|
||||
_ba.chatmessage("3 more end votes required")
|
||||
ba.internal.chatmessage("3 more end votes required")
|
||||
|
||||
if len(voters) >= required_votes(len(active_players)):
|
||||
_ba.chatmessage("end vote succeed")
|
||||
ba.internal.chatmessage("end vote succeed")
|
||||
try:
|
||||
with _ba.Context(_ba.get_foreground_host_activity()):
|
||||
_ba.get_foreground_host_activity().end_game()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue