Paste #11409: Chat replacing

Date: 2014/11/21 09:38:55 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


ChatSwears:
    type: world
    events:
        on player chats:
        - if <context.message.contains[test]> {
            - determine <context.message.replace[test].with[xxxx]>
        } else if <context.message.contains[login]> {
            - determine cancelled
        } else if <context.message.contains[anotherone]> {
            - determine <context.message.replace[anotherone].with[xxxxx]>
        } else if <context.message.contains[ab]> {
            - determine <context.message.replace[ab].with[xx]>
        }