Spy bug and error
Type of bug
Error in console, Other unexpected behaviour
/ess dump all output
https://essentialsx.net/dump.html?id=9dab08ce249d40ffb9c199a8dc75e573
Error log (if applicable)
https://paste.gg/p/anonymous/22d455b499254e228d8f573031373120
Bug description
Spy messages not displaying correctly, console error
Steps to reproduce
- Install EssentialsX and EssentialsXChat
- Set chat.radius bigger than 0 3.1. Another player with permission or op move away to local chat distance 3.2. Send message without color codes 3.3. See the spy message received by another player 4.1. Send in local chat message with color (eg. "&12345") 4.2. See error in console
Expected behaviour
Spy prefix displays correctly, no errors in console
Actual behaviour
Bad display of spy prefix (when message without color codes)
No spy message, error in console (with color)
Additional Information
The error appeared after this commit https://github.com/EssentialsX/Essentials/commit/82606a7cedbd66cac9223501cd6d96ea3dc8e339
I tried to fix it and it helped me, but I'm a bad coder and didn't really understand what I was doing. Maybe it will help. https://github.com/HauserGrim/Essentials/commit/816b42baa9172a8add85f73e33f2f99a5e3d2bd1 https://github.com/HauserGrim/Essentials/commit/07bdf02150dad5d3b3e4f0046e3e5bc134722b3c