lithin9 / Unturned-Custom-Plugin

Other
0 stars 0 forks source link

Party chat toggle #100

Closed jcvl92 closed 9 years ago

jcvl92 commented 9 years ago

Have /p toggle instead of just work once.

jcvl92 commented 9 years ago

There is no easy way to do this. ChatManager could be overloaded, but it won't do us any good because we can only see the target, not the sender. We could do a deep message inspection and fetch the sender, but that would complicate commands. What we could do is on every message send, remove the last thing from the chat list that has the player listed as the speaker. Just overload the ChatManager and provide a single function for removing the last thing a person said. After that, if toggle is on, forward to the party.

Also, the party chat should be using the player as the source of the message if it isn't already. We don't want party messages coming from the server.

jcvl92 commented 9 years ago

Confirmed impossible :/