EssentialsX

EssentialsX

2M Downloads

Spy bug and error

HauserGrim opened this issue ยท 0 comments

commented

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

  1. Install EssentialsX and EssentialsXChat
  2. 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)
image
No spy message, error in console (with color)

Additional Information

The error appeared after this commit
82606a7

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.
HauserGrim@816b42b
HauserGrim@07bdf02