I was able to get it to work with this:
Syntax: Select all
@SayFilter
def _say_filter(command, index, team_only):
if index is 0:
pass
else:
msg = ' '.join(command)
sender = Player(index)
SayText2(f"PREFIX {sender.name}: {msg}").send()
return False
return True
But makes it so commands don't work. So thats obviously not ideal.
I suppose what I want, is to prehook the player send message event, and add a string on front of the thing it renders to the clients. Is this easy to do?