How to remove message and do an action

Discussion in 'Plugin Development' started by rokz, Jul 15, 2019.

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

    rokz

    i want if a user send a message as example "f*ck" i want the plugin to remove this message and do an action like throw him to sky then fall to death "example" how ?
     
  2. Offline

    CraftCreeper6

    @rokz
    Listen for PlayerChatEvent, cross check their message with a list of blacklisted words, if they mention any blacklisted words, throw them into the sky to fall to their death.
     
  3. Offline

    KarimAKL

    PlayerChatEvent is deprecated, it's recommended to use AsyncPlayerChatEvent.
     
Thread Status:
Not open for further replies.

Share This Page