How would I disable a certain player's chat for a certain player?

Discussion in 'Plugin Development' started by EgyptianKing, Aug 17, 2014.

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

    EgyptianKing

    How can I make it so that Player A cannot see Player B's messages, but everyone else on the server can?
     
  2. Offline

    excusemyluck

    Get the player who sent the message. Then check through all of the players on the server. If a user has a certain username or UUID, cancel the event for them. This should work, but if it doesn't I apologize.
     
  3. Offline

    ShadowLAX

    EgyptianKing PlayerAsyncChatEvent and use e.getRecipients().
     
Thread Status:
Not open for further replies.

Share This Page