Paste #45631: Untitled Paste

Date: 2017/11/20 18:28:56 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


- define start <context.message.char_at[1]||0>
  - choose <def[start]>:
    - case '+':
      - define m '<context.message.substring[2].replace[&r].with[<&r><&5>].parse_color>'
      - define f 'shinobi_chat_format_plus'
      - define override 'true'
    - case '*':
      - define m '<context.message.substring[2].parse_color>'
      - define f 'shinobi_chat_format_minus'
      - define override 'true'
    - case '(':
      - define m '<context.message.substring[2].parse_color>'
      - define f 'shinobi_chat_format_par'
      - define override 'true'
    - case '=':
      - define m '<context.message.substring[2].parse_color>'
      - define f 'shinobi_chat_format_par'
      - define override 'true'
    - case '!':
      - define m '<context.message.substring[2].parse_color>'
      - define f 'shinobi_chat_format_par'
      - define override 'true'
    - case '<&dq>':
      - define m '<context.message.substring[2].parse_color>'
      - define f 'shinobi_chat_format_dq'
      - define override 'true'

shinobi_chat_format_plus:
  type: format
  debug: false
  format: '<&5>+<&r><player.name.display><&r><&7><&co> <&5><text>'
shinobi_chat_format_minus:
  type: format
  debug: false
  format: '-<player.name.display> <text>'
shinobi_chat_format_par:
  type: format
  debug: false
  format: '(<player.name.display> <text>'
shinobi_chat_format_dq:
  type: format
  debug: false
  format: '-><player.name.display> <text>'