diff --git a/src/main/kotlin/xyz/xasmc/hashbook/listener/OpenBookListener.kt b/src/main/kotlin/xyz/xasmc/hashbook/listener/OpenBookListener.kt index 22bdab8..078f69b 100644 --- a/src/main/kotlin/xyz/xasmc/hashbook/listener/OpenBookListener.kt +++ b/src/main/kotlin/xyz/xasmc/hashbook/listener/OpenBookListener.kt @@ -41,12 +41,14 @@ class OpenBookListener : Listener { val bookMeta = item.itemMeta as BookMeta bookMeta.pages(BookUtil.deserializePages(StorageServices.read(hash) ?: run { val copyMsg = MessageUtil.copyMsg("[点击复制]", hash, "点击复制") - player.sendMiniMessage("$msgTitle [warn] 无法读取成书书页, hash: $hash $copyMsg") + player.sendMiniMessage("$msgTitle [warn] 无法读取成书书页") + player.sendMiniMessage("$msgTitle [warn] hash: $hash $copyMsg") return@onPlayerInteract })) val copyMsg = MessageUtil.copyMsg("[点击复制]", hash, "点击复制") player.openBook(bookMeta) - player.debugMiniMessage("$msgTitle [debug] 成功替换数据, hash: $hash $copyMsg") + player.debugMiniMessage("$msgTitle [debug] 成功替换数据") + player.debugMiniMessage("$msgTitle [debug] hash: $hash $copyMsg") event.isCancelled = true } } diff --git a/src/main/kotlin/xyz/xasmc/hashbook/util/BookUtil.kt b/src/main/kotlin/xyz/xasmc/hashbook/util/BookUtil.kt index e0444ab..0174d4b 100644 --- a/src/main/kotlin/xyz/xasmc/hashbook/util/BookUtil.kt +++ b/src/main/kotlin/xyz/xasmc/hashbook/util/BookUtil.kt @@ -70,7 +70,9 @@ object BookUtil { val hash = HashUtil.HashString(serialized) StorageServices.save(hash, serialized) val copyMsg = MessageUtil.copyMsg("[点击复制]", hash, "点击复制") - player.debugMiniMessage("$msgTitle [debug]已存储成书书页 hash: $hash $copyMsg meta: $bookMeta") + player.debugMiniMessage("$msgTitle [debug]已存储成书书页") + player.debugMiniMessage("$msgTitle [debug]hash: $hash $copyMsg") + player.debugMiniMessage("$msgTitle [debug]meta: $bookMeta") newItem = ItemDataServices.setItemData( newItem, "HashBook.Hash", ItemDataServices.DataType.String, hash