Paste #45890: laugh at me

Date: 2017/12/09 15:01:13 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


chat_format_data:
  type: yaml data
  debug: false
  race:
    roamer: '&eRoamer'
  prefix:
    0: '&fCitizen'
    1: '&aNoble&2'
    2: '&bDignitary&3'
    3: '&eAmbassador&6'
    s1: '&7Assistant&f'
    s2: '&7Moderator&f'
    s3: '&7Admin&f'
    s4: '&7Owner&f'
  suffix: {}

player_chat_general:
  type: format
  debug: false
  format: '<&7>/<s@chat_format_data.yaml_key[race.<yaml[<player.uuid>].read[game.race]||roamer>].parse_color><&7>/
  <s@chat_format_data.yaml_key[prefix.<yaml[<player.uuid>].read[game.rank]||0>].parse_color><player.name><&r><&7><&co>
  <text>'

global_chat:
  type: world
  debug: false
  events:
    on player chats:
    - determine passively 'FORMAT:player_chat_general'