Paste #12675: Untitled Paste

Date: 2015/01/09 08:57:50 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"serverping":
  type: world
  debug: false
  events:
    on server list ping:
    - if 1 == 0 {
      - determine "1000|<&6>The official Luminatics server!<n><&d>Now with teamspeak 3<&co> <&b>TS.LUMINATICS.NET"
      } else if <yaml[playerIP].contains[<context.address.replace[.].with[-]>]> {
      - define player '<yaml[playerip].read[<context.address.replace[.].with[-]>]>'
      - if <p@%player%.has_flag[%player%isbanned]> {
        - determine "1000|<&6><&c>You are banned for <&e><p@%player%.flag[%player%isbanned].expiration.formatted><&c>.<n><&c>You can submit an appeal to <&e>support@luminatics.net<&c>."
        } else if <p@%player%.flag[lumimails]||null> != null {
        - determine "1000|<&6>The official Luminatics server!<n><&a>%player%<&e>, You have <t[<p@%player%.flag[lumimails].as_list.size.is[more].than[0]>]:<p@%player%.flag[lumimails].as_list.size>||no> mail<t[<p@%player%.flag[lumimails].as_list.size.is[more].than[1]>]:s||> waiting for you!"
        } else {
        - random {
          - determine "1000|<&6>The official Luminatics server!<n><&e>Hey <&a>%player%<&e>, We need you!"
          - determine "1000|<&6>The official Luminatics server!<n><&e>Come join us, <&a>%player%<&e>!"
          - determine "1000|<&6>The official Luminatics server!<n><&e><&a>%player%<&e>! Show us your skills!"    
          - determine "1000|<&6>The official Luminatics server!<n><&6>Laura<&e> misses <&a>%player%<&e>!"
          - determine "1000|<&6>The official Luminatics server!<n><&e>Make yourself a sandwich, <&a>%player%<&e>!"
          - determine "1000|<&6>The official Luminatics server!<n><&e>It needs more depphhhtt, <&a>%player%<&e>!"
          - determine "1000|<&6>The official Luminatics server!<n><&e>Hey <&a>%player%<&e>, come help us build <yaml[checklistdata].list_keys[globallists].get[1]>!"
          - determine "1000|<&6>The official Luminatics server!<n><&e>Hey <&a>%player%<&e>, come work on <yaml[checklistdata].list_keys[globallists].get[1]>!"
          }
        }
      } else {
      - random {
        - determine "1000|<&6>The official Luminatics server!<n><&b><&n>www.luminatics.net"
        - determine "1000|<&6>The official Luminatics server!<n><&e><&o>The one and only."
        }
      }
    on player joins:
    - yaml "write:<player.ip.address.replace[.].with[-].before[<&co>]>" 'value:<player.name.display>' id:playerIP