mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
added logger
This commit is contained in:
parent
d26d5a2102
commit
7cb8323a5d
19 changed files with 1954 additions and 329 deletions
7
dist/ba_root/mods/chatHandle/handlechat.py
vendored
7
dist/ba_root/mods/chatHandle/handlechat.py
vendored
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from playersData import pdata
|
||||
from chatHandle.ChatCommands import Main
|
||||
|
||||
from tools import Logger
|
||||
import ba, _ba
|
||||
|
||||
|
||||
|
|
@ -10,6 +10,11 @@ import ba, _ba
|
|||
def filter_chat_message(msg, client_id):
|
||||
if msg.startswith("/"):
|
||||
return Main.Command(msg, client_id)
|
||||
acid=""
|
||||
for i in _ba.get_game_roster():
|
||||
if i['client_id'] == client_id:
|
||||
acid = i['account_id']
|
||||
Logger.log(acid+" | "+msg,"chat")
|
||||
return msg
|
||||
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue