💬Chat Format
Create new formats in the LPC-Pro/formats directory.
This is the simplest one-line format example:
chat-format:
text: '<click:suggest_command:/helpop >{prefix} {name}</click>&r: {message}'You can achieve the same format using Parts in the following way:
prefix-and-name:
text: '{prefix} {name}'
click: 'suggest_command:/helpop '
divider:
text: '&r:'
space:
text: ' '
chat:
text: '{message}'Parts can be mixed and named as you want, but they have to contain a text key.
prefix-and-name:
text: '{prefix} {name}'
hover:
- '{prefix} {name}'
- '<br>&8Joined %player_first_join_date%'
- '<br>'
- '<br>&7Hours played: &f%statistic_hours_played%h'
- '<br>&7Current world: &f"{world}"'
- '%rel_relcon_viewer_lp.group.admin_<br>&7IP: &f{player_ip}_<blank>%'
- '%rel_relcon_viewer_lp.group.admin_<br>&7Gamemode: &f{player_gamemode}_<blank>%'
- '<br>'
- '<br>&aClick to send a message!'
click: 'suggest_command:/tell {name} '
divider:
text: '&r: '
message:
text: '{message}'
hover:
- '&eClick to report this message!'
click: 'run_command:/report {name} {message}'Last updated