diff --git a/patches/server/Paper-Plugins.patch b/patches/server/Paper-Plugins.patch index 8792d587e..933f311fd 100644 --- a/patches/server/Paper-Plugins.patch +++ b/patches/server/Paper-Plugins.patch @@ -489,9 +489,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + final Path resolvedUpdateDirectory = pluginDirectory.resolve(updateDirectoryName); + if (!Files.isDirectory(resolvedUpdateDirectory)) { -+ LOGGER.error("Misconfigured update directory!"); -+ LOGGER.error(("Your configured update directory (%s) in bukkit.yml is pointing to a non-directory path. " + -+ "Disabling auto updating functionality.").formatted(resolvedUpdateDirectory)); ++ if (Files.exists(resolvedUpdateDirectory)) { ++ LOGGER.error("Misconfigured update directory!"); ++ LOGGER.error("Your configured update directory ({}) in bukkit.yml is pointing to a non-directory path. " + ++ "Auto updating functionality will not work.", resolvedUpdateDirectory); ++ } + return new PluginInitializerManager(pluginDirectory, null); + } +