Date: 2017/10/14 17:19:43 UTC-07:00
Type: Denizen Script
NoSwear_Config:
type: yaml data
config:
swears:
- bitch
- fuck
- shit
- test
NoSwear:
type: world
events:
on player chats:
- define wordList <s@NoSwear_Config.yaml_key[config.swears]>
- if <context.message.contains_any_text[<def[wordList]>]> {
- playsound <player> sound:ENTITY_ENDERMEN_SCREAM pitch:1.5
- adjust <player> 'action_bar:<&4><&l>Such language is unacceptable!'
- determine <context.message.replace_text[regex:(<def[worldList].separated_by[|]>)].with[**]>
}