Paste #34142: Untitled Paste

Date: 2016/06/08 16:38:09 UTC-07: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
14
15
16
17


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
            }
          }