Paste #49061: Untitled Paste

Date: 2018/08/16 06:48:35 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


connect:
  type: world
  events: 
    on server start:
    - wait 30s
    - discord id:cbot connect code:NDIxMzY5MTgxNzMzMjU3MjI2.DlZX4A.hCiReIJvsBeGXhXzF_l1kzM3AXw
    - discord id:cbot message channel:479450748384444436 ":heavy_check_mark: **SedexPvP has started.**"
    on player chats:
    - discord id:cbot message channel:479450748384444436 "**[SedexPvP] <player.chat_prefix.parse_color.strip_color> <player.name>** >> <context.message>"
    on discord message received:
    - if <c.channel> == 479450748384444436 {
      - announce "<&7>[<&e>Discord<&7>] <&f><c.author_name>: <c.message>"
      }
    on player joins:
    - if <player.has_flag[nodoublemsg]> {
      - queue clear
      }
    - discord id:cbot message channel:479450748384444436 ":heavy_plus_sign: **<player.name> joined SedexPvP**"    
    on player quit:
    - discord id:cbot message channel:479450748384444436 ":heavy_minus_sign: **<player.name> left SedexPvP**"    
    on player first login:
    - flag player nodoublemsg d:5s
    - discord id:cbot message channel:479450748384444436 ":heartpulse: **<player.name> joined SedexPvP for the first time!**"