From 7f77bf16ff3e442f423c4904b15636c3162f8171 Mon Sep 17 00:00:00 2001 From: jhqwqmc <2110242767@qq.com> Date: Sun, 16 Mar 2025 18:58:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(core):=20=E6=B7=BB=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E7=89=A9=E5=93=81=E9=85=8D=E6=96=B9=E5=92=8C=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bukkit-loader/src/main/resources/translations/en.yml | 1 + bukkit-loader/src/main/resources/translations/es.yml | 1 + bukkit-loader/src/main/resources/translations/zh_cn.yml | 1 + bukkit-loader/src/main/resources/translations/zh_tw.yml | 1 + .../plugin/command/feature/ItemRecipeBrowserCommand.java | 3 ++- .../craftengine/core/plugin/locale/MessageConstants.java | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bukkit-loader/src/main/resources/translations/en.yml b/bukkit-loader/src/main/resources/translations/en.yml index ba6ea921f..6961f5aed 100644 --- a/bukkit-loader/src/main/resources/translations/en.yml +++ b/bukkit-loader/src/main/resources/translations/en.yml @@ -49,4 +49,5 @@ command.item.get.failure.not_exist: "':'':''>" command.item.give.success.multiple: "':'':''>" command.item.give.failure.not_exist: "'>" +command.item.recipe.browser.recipe.no_found: "No recipe found for this item" command.item.usage.browser.recipe.no_found: "No usage found for this item" \ No newline at end of file diff --git a/bukkit-loader/src/main/resources/translations/es.yml b/bukkit-loader/src/main/resources/translations/es.yml index 7c4d9cbe3..9897a5ae1 100644 --- a/bukkit-loader/src/main/resources/translations/es.yml +++ b/bukkit-loader/src/main/resources/translations/es.yml @@ -49,4 +49,5 @@ command.item.get.failure.not_exist: "':'':''>" command.item.give.success.multiple: "':'':''>" command.item.give.failure.not_exist: "'>" +command.item.recipe.browser.recipe.no_found: "No recipe found for this item" command.item.usage.browser.recipe.no_found: "No usage found for this item" \ No newline at end of file diff --git a/bukkit-loader/src/main/resources/translations/zh_cn.yml b/bukkit-loader/src/main/resources/translations/zh_cn.yml index 5af0fef1b..020a922e3 100644 --- a/bukkit-loader/src/main/resources/translations/zh_cn.yml +++ b/bukkit-loader/src/main/resources/translations/zh_cn.yml @@ -49,4 +49,5 @@ command.item.get.failure.not_exist: "':'':''>" command.item.give.success.multiple: "':'':''>" command.item.give.failure.not_exist: "'>" +command.item.recipe.browser.recipe.no_found: "找不到此物品的配方" command.item.usage.browser.recipe.no_found: "找不到此物品的用法" \ No newline at end of file diff --git a/bukkit-loader/src/main/resources/translations/zh_tw.yml b/bukkit-loader/src/main/resources/translations/zh_tw.yml index 26f5aec3b..ac1506a69 100644 --- a/bukkit-loader/src/main/resources/translations/zh_tw.yml +++ b/bukkit-loader/src/main/resources/translations/zh_tw.yml @@ -49,4 +49,5 @@ command.item.get.failure.not_exist: "':'':''>" command.item.give.success.multiple: "':'':''>" command.item.give.failure.not_exist: "'>" +command.item.recipe.browser.recipe.no_found: "找不到此物品的配方" command.item.usage.browser.recipe.no_found: "找不到此物品的用法" \ No newline at end of file diff --git a/bukkit/src/main/java/net/momirealms/craftengine/bukkit/plugin/command/feature/ItemRecipeBrowserCommand.java b/bukkit/src/main/java/net/momirealms/craftengine/bukkit/plugin/command/feature/ItemRecipeBrowserCommand.java index 3389898fe..d0dbd2a38 100644 --- a/bukkit/src/main/java/net/momirealms/craftengine/bukkit/plugin/command/feature/ItemRecipeBrowserCommand.java +++ b/bukkit/src/main/java/net/momirealms/craftengine/bukkit/plugin/command/feature/ItemRecipeBrowserCommand.java @@ -5,6 +5,7 @@ import net.momirealms.craftengine.bukkit.plugin.user.BukkitServerPlayer; import net.momirealms.craftengine.core.item.recipe.Recipe; import net.momirealms.craftengine.core.plugin.CraftEngine; import net.momirealms.craftengine.core.plugin.command.CraftEngineCommandManager; +import net.momirealms.craftengine.core.plugin.locale.MessageConstants; import net.momirealms.craftengine.core.util.Key; import org.bukkit.NamespacedKey; import org.bukkit.command.CommandSender; @@ -46,7 +47,7 @@ public class ItemRecipeBrowserCommand extends BukkitCommandFeature