mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-11-07 17:36:08 +00:00
Update servercheck.py
This commit is contained in:
parent
a8a6d067fa
commit
8cb1245312
1 changed files with 1 additions and 2 deletions
3
dist/ba_root/mods/tools/servercheck.py
vendored
3
dist/ba_root/mods/tools/servercheck.py
vendored
|
|
@ -255,7 +255,6 @@ def on_player_join_server(pbid, player_data, ip, device_id):
|
||||||
color=(1, 0, 0), transient=True,
|
color=(1, 0, 0), transient=True,
|
||||||
clients=[clid])
|
clients=[clid])
|
||||||
ba.internal.disconnect_client(clid)
|
ba.internal.disconnect_client(clid)
|
||||||
_thread.start_new_thread(reportSpam, (pbid,))
|
|
||||||
return # Exit the function after kicking the player
|
return # Exit the function after kicking the player
|
||||||
else:
|
else:
|
||||||
joincount = 0
|
joincount = 0
|
||||||
|
|
@ -541,7 +540,7 @@ def reportSpam(id):
|
||||||
count = profiles[id]["spamCount"]
|
count = profiles[id]["spamCount"]
|
||||||
if now - profiles[id]["lastSpam"] < 2 * 24 * 60 * 60:
|
if now - profiles[id]["lastSpam"] < 2 * 24 * 60 * 60:
|
||||||
count += 1
|
count += 1
|
||||||
if count > 5:
|
if count > 3:
|
||||||
logger.log(id+" auto banned for spamming")
|
logger.log(id+" auto banned for spamming")
|
||||||
# by default ban for 1 day , change here if you want
|
# by default ban for 1 day , change here if you want
|
||||||
pdata.ban_player(id, 1, "auto ban exceed warn count")
|
pdata.ban_player(id, 1, "auto ban exceed warn count")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue