Chat Filter


Author: danton1983
Created: 2013-05-13T18:04:02-0400
Edited: 2013-11-29T17:42:52-0500
Denizen Version: 0.93
Views: 31
Downloads: 760
Likes: 1


WGET
Description: Here is a quick example of a chat filter and a swift kick

Feel free to add || into the IF statement to have it check for more words and feel free to adjust the kick message.

'chatNow':
  type: world
  events:  
    on chat:
    - ^if !<player.is_op> && <player.chat_history> == Shit
      run chatfilter
'chatfilter':
    type: task
    script:
    - narrate "<&c><&l>You are being kicked for using the word shit."
    - execute as_server "kick <player.name> What did you say?"




Comments
No one has posted a comment! Post one below: