mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
* 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>
21 lines
479 B
Rust
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(),
|
|
}
|
|
}
|
|
}
|