mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
end vote fix
This commit is contained in:
parent
07f6b304f5
commit
61e949f909
1 changed files with 2 additions and 5 deletions
7
dist/ba_root/mods/features/EndVote.py
vendored
7
dist/ba_root/mods/features/EndVote.py
vendored
|
|
@ -1,10 +1,6 @@
|
|||
import _ba, ba
|
||||
import time
|
||||
"""
|
||||
End Vote by mr.smoothy
|
||||
with no timer and minimum message
|
||||
for BCS scripts only
|
||||
"""
|
||||
|
||||
last_end_vote_start_time = 0
|
||||
end_vote_duration = 30
|
||||
game_started_on = 0
|
||||
|
|
@ -23,6 +19,7 @@ def vote_end(pb_id, client_id):
|
|||
if now < game_started_on + min_game_duration_to_start_end_vote:
|
||||
_ba.screenmessage("Seems game just started, Try again after some time", transient=True,
|
||||
clients=[client_id])
|
||||
return
|
||||
if len(voters) == 0:
|
||||
_ba.chatmessage("end vote started")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue