From 3a17f94fb69f9aeac9824de0430d1a29488be064 Mon Sep 17 00:00:00 2001 From: PetteriM1 <26197131+PetteriM1@users.noreply.github.com> Date: Sat, 29 Jul 2023 21:28:17 +0300 Subject: [PATCH] Add plugin name to missing dependency error (#2138) --- src/main/java/cn/nukkit/plugin/PluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/nukkit/plugin/PluginManager.java b/src/main/java/cn/nukkit/plugin/PluginManager.java index 0b09fd3983e..0ee96b95d06 100644 --- a/src/main/java/cn/nukkit/plugin/PluginManager.java +++ b/src/main/java/cn/nukkit/plugin/PluginManager.java @@ -244,7 +244,7 @@ public Map loadPlugins(File dictionary, List newLoaders, dependencies.get(name).remove(dependency); } else if (!plugins.containsKey(dependency)) { this.server.getLogger().critical(this.server.getLanguage().translateString("nukkit" + - ".plugin.loadError", new String[]{name, "%nukkit.plugin.unknownDependency"})); + ".plugin.loadError", new String[]{name, "%nukkit.plugin.unknownDependency"}) + ": " + dependency); break; } }