How would I make a chat filter?

Discussion in 'Plugin Development' started by stantheman68, Sep 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    stantheman68

    Hey there,

    I was just wondering on how I would make a chat filter. If anyone knows please tell me in the comments or tell me the basics of it so I can learn.

    Thank You.
     
  2. Offline

    makskay

    A good place to start are the docs for the AsyncPlayerChatEvent and for Bukkit's event system. You'll want to set up a listener for chat events, then modify those events (perhaps by setting them to be cancelled, or changing the message text) based on the contents of the message text when the event is passed to your plugin.
     
  3. Offline

    stantheman68

Thread Status:
Not open for further replies.

Share This Page