Skip to content

Help with listening for LocalChatSpyEvents #3782

Answered by triagonal
networkException asked this question in Q&A
Discussion options

You must be logged in to vote

I was just able to successfully listen to and interact with this event. Your code looks fine, but there's two things you need to make sure you're doing:

  1. You need to have EssentialsXChat installed, since chat is the plugin that fires the LocalChatSpyEvent.
  2. The chat needs to actually be local, i.e. you need to set chat.radius in the chat section of the config to something greater than 0.

Keep in mind that this event is only for local chat messages and won't fire in certain situations like shouting (!message) or questions (?message).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@networkException
Comment options

Answer selected by networkException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants