mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
added chat commands
This commit is contained in:
parent
e9f6da8a2e
commit
28ba7d8b4d
7 changed files with 690 additions and 161 deletions
6
dist/ba_root/mods/chatHandle/handlechat.py
vendored
6
dist/ba_root/mods/chatHandle/handlechat.py
vendored
|
|
@ -1,7 +1,7 @@
|
|||
# Released under the MIT License. See LICENSE for details.
|
||||
from playersData import pdata
|
||||
from chatHandle.chatCMDS import chatcmd
|
||||
from chatFilter import chatfilter
|
||||
#from chatFilter import chatfilter
|
||||
import ba,_ba
|
||||
|
||||
def public_id(client_id):
|
||||
|
|
@ -14,11 +14,13 @@ def public_id(client_id):
|
|||
def filter_chat_message(msg,client_id):
|
||||
if msg.startswith("/"):
|
||||
return chatcmd.cmd(msg,client_id)
|
||||
return msg
|
||||
|
||||
"""
|
||||
if chatfilter.isAbuse(msg):
|
||||
pdata.warn(public_id(client_id))
|
||||
return None
|
||||
return msg
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue