mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
add Github link in /pumpkin command (#372)
* Add the text and the open link * Update cmd_pumpkin.rs * Fixed all the warnings and clippy and fmt * fixed more * trying to fix confics * Fixed a bug * another one * Update .gitignore * Update cmd_pumpkin.rs * Added docs * Formated * Update cmd_pumpkin.rs * im gonna test * Change color bcs aqua is ugly * Update cmd_pumpkin.rs * Update cmd_pumpkin.rs * Update cmd_pumpkin.rs
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -74,7 +74,6 @@ gradle-app.setting
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
@@ -59,6 +59,32 @@ impl CommandExecutor for PumpkinExecutor {
|
||||
"Click to Copy Minecraft Version",
|
||||
)))
|
||||
.color_named(NamedColor::Gold),
|
||||
)
|
||||
.add_child(TextComponent::text(" "))
|
||||
// https://snowiiii.github.io/Pumpkin/
|
||||
.add_child(
|
||||
TextComponent::text("Github Repository")
|
||||
.click_event(ClickEvent::OpenUrl(Cow::from(
|
||||
"https://github.com/Snowiiii/Pumpkin",
|
||||
)))
|
||||
.hover_event(HoverEvent::ShowText(Cow::from(
|
||||
"Click to open repository.",
|
||||
)))
|
||||
.color_named(NamedColor::Blue)
|
||||
.bold()
|
||||
.underlined(),
|
||||
)
|
||||
// Added docs. and a space for spacing
|
||||
.add_child(TextComponent::text(" "))
|
||||
.add_child(
|
||||
TextComponent::text("Docs")
|
||||
.click_event(ClickEvent::OpenUrl(Cow::from(
|
||||
"https://snowiiii.github.io/Pumpkin/",
|
||||
)))
|
||||
.hover_event(HoverEvent::ShowText(Cow::from("Click to open docs.")))
|
||||
.color_named(NamedColor::Blue)
|
||||
.bold()
|
||||
.underlined(),
|
||||
),
|
||||
)
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user