Paste #8449: ping script

Date: 2014/08/15 21:29:22 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


pingmagic:
    type: world
    debug: false
    events:
        on player join:
        - flag global IPINFO.ADDRESS.<player.ip.address.before[:].replace[/]>:<player.name>
        on server list ping:
        - if <context.address.is[==].to[/97.102.10.15]> {
          - determine "<server.max_players>|<&4>I, spazzmatic, am entirely inferior to monkeybot in all possible ways."
          }
          else if <el@val[<global.flag[IPINFO.ADDRESS.<context.address.before[:].replace[/]>]>].is[!=].to[null]> {
          - determine "<server.max_players>|<server.motd><&nl><&4>Welcome, <&b><global.flag[IPINFO.ADDRESS.<context.address.before[:].replace[/]>]><&4>!"
          }