diff --git a/pumpkin/src/command/commands/cmd_seed.rs b/pumpkin/src/command/commands/cmd_seed.rs index 653697aa..18b4c360 100644 --- a/pumpkin/src/command/commands/cmd_seed.rs +++ b/pumpkin/src/command/commands/cmd_seed.rs @@ -39,12 +39,16 @@ impl CommandExecutor for PumpkinExecutor { sender .send_message( - TextComponent::text(&format!("Seed: [{seed}]")) - .hover_event(HoverEvent::ShowText(Cow::from( - "Click to Copy to Clipboard", - ))) - .click_event(ClickEvent::CopyToClipboard(Cow::from(seed))) - .color_named(NamedColor::Green), // TODO: use white and green, when possible + TextComponent::text("Seed: [") + .add_child( + TextComponent::text(&seed.clone()) + .hover_event(HoverEvent::ShowText(Cow::from( + "Click to Copy to Clipboard", + ))) + .click_event(ClickEvent::CopyToClipboard(Cow::from(seed))) + .color_named(NamedColor::Green), + ) + .add_child(TextComponent::text("]")), ) .await; Ok(())