Getting Private Messages from Essentials

Discussion in 'Plugin Development' started by DefaultSyntax, Nov 21, 2014.

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

    DefaultSyntax

    Hi, I'm creating a ChatManager plugin for my server, and I was wondering if there was a way to receive Private Messages. If there is, can someone tell me how to catch them for my plugin? Thanks.
     
  2. Offline

    TakaGo

    try this event PlayerCommandPreprocessEvent
     
  3. Offline

    Skionz

    TakaGo He wants to check when a player gets a message not when they send one (I think)
    DefaultSyntax You could intercept outgoing messages and check if they start with whatever the messages on essentials start with.
     
  4. Offline

    DefaultSyntax

  5. Offline

    Skionz

    DefaultSyntax Doubtful but you can look at the documentation.
     
  6. Offline

    DefaultSyntax

    Thanks for the help! I was able to figure the problem using the PlayerCommandPreproccess event. Thanks.
     
    Skionz likes this.
Thread Status:
Not open for further replies.

Share This Page