Date: 2016/06/08 16:38:09 UTC-07:00
Type: Denizen Script
chat_ping_world:
type: world
debug: true
events:
on player chats:
# Get a list of everyone online
- foreach <server.list_online_players> {
# Test if some says their name
- if <context.message.contains[<def[value].name>]> || <context.message.contains[<def[value].name.display.strip_color>]> {
# Let them know
- narrate targets:%value% "<player.name><&b> mentioned you!"
- playsound <def[value].location> sound:successful_hit
}
}