Skip to content

Commit

Permalink
💬 update details
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Jun 8, 2024
1 parent 912e10d commit e653eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ object HashBookCommand {
sender.sendMiniMessage("$msgTitle <aqua>storage_mode</aqua>: <green>${HashBook.config.storageMode}")
sender.sendMiniMessage("$msgTitle <aqua>item_data_mode</aqua>: <green>${HashBook.config.itemDataMode}")
sender.sendMiniMessage("$msgTitle <aqua>set_lore</aqua>: <green>${HashBook.config.setLore}")
sender.sendMiniMessage("$msgTitle <aqua>lore_content</aqua>: <green>${HashBook.config.loreContent}")
sender.sendMiniMessage("$msgTitle <aqua>lore_content</aqua>: <i><green>${HashBook.config.loreContent}</i>")
})

return command
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/xasmc/hashbook/util/MessageUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object MessageUtil {

fun shortHashMessage(hash: String): String {
val shortHash = hash.substring(0..6)
return copyMsg(shortHash, hash, "<green>$hash</green>")
return copyMsg("$shortHash <i><gold>[点击复制]</gold></i>", hash, "<green>$hash</green>")
}

infix fun Player.sendMiniMessage(message: String) =
Expand Down

0 comments on commit e653eed

Please sign in to comment.