Files
Pumpkin/pumpkin-config/src/chat.rs
Illyrius 6c7c0a4cc5 chore(pumpkin-config): add more docs (#1449)
* updated documentations and applied a minor fix to resource_pack.rs config (suggested and autofixed by rustrover).

* fmt

Signed-off-by: Illyrius <fitimq@live.nl>

* Update pumpkin-config/src/fun.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Illyrius <28700752+illyrius666@users.noreply.github.com>

* Apply suggestion from @illyrius666

i dont think we do, let me know otherwise

Signed-off-by: Illyrius <28700752+illyrius666@users.noreply.github.com>

* remove unnecessary spaces between fields and such.

---------

Signed-off-by: Illyrius <fitimq@live.nl>
Signed-off-by: Illyrius <28700752+illyrius666@users.noreply.github.com>
Co-authored-by: Illyrius <fitimq@live.nl>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-07 15:44:01 +01:00

21 lines
479 B
Rust

use serde::{Deserialize, Serialize};
/// Configuration for in-game chat behaviour.
///
/// Controls chat formatting and display.
#[derive(Deserialize, Serialize)]
#[serde(default)]
pub struct ChatConfig {
/// The custom chat format.
/// `Note`: it does not apply when secure chat is enabled.
pub format: String,
}
impl Default for ChatConfig {
fn default() -> Self {
Self {
format: "<{DISPLAYNAME}> {MESSAGE}".to_string(),
}
}
}