yonilerner / cs2-retakes-allocator

Advanced weapon allocation for B3none/cs2-retakes
GNU General Public License v3.0
58 stars 16 forks source link

Added blank space before MessagePrefix for fixing Color not working. #136

Closed GL1TCH1337 closed 7 months ago

GL1TCH1337 commented 7 months ago

When setting ChatMessagePluginPrefix in config, If you start with color tags it won't work. Messages should not start with color tag.

For example config below will not be colored.

"ChatMessagePluginPrefix": "[GREEN] aaaaaa [NORMAL] ",

But if you do this way it will be colored

"ChatMessagePluginPrefix": "a[GREEN] aaaaaa [NORMAL] ",

This can be fixed by user by putting a space on config but as seen in Issue #131 it can be hard to find out what causes this.

I fixed it by putting a small space by default on code. It looks good in game too.

awp