Fix corrupted plugin.yml breaking plugin loading (#10279)

Fix corrupted plugin.yml file in one plugin not loading any plugins by
the server.

Co-authored-by: Aleksander Jagiello <themolkapl@gmail.com>
This commit is contained in:
Bjarne Koll 2024-02-23 18:54:44 +01:00 committed by GitHub
parent e3bc4c4107
commit d0ebfbbd15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5480,7 +5480,7 @@ index 0000000000000000000000000000000000000000..49a087381307eab263f7dad43aaa2598
+}
diff --git a/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
new file mode 100644
index 0000000000000000000000000000000000000000..f30fcf60b64150e381c7b813016aa9ddf6f2c4e4
index 0000000000000000000000000000000000000000..226f457db6c1461c943c157b2b91e7450abc9dc6
--- /dev/null
+++ b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
@@ -0,0 +1,66 @@
@ -5519,7 +5519,7 @@ index 0000000000000000000000000000000000000000..f30fcf60b64150e381c7b813016aa9dd
+ files.add(FILE_PROVIDER_SOURCE.prepareContext(path));
+ } catch (IllegalArgumentException ignored) {
+ // Ignore illegal argument exceptions from jar checking
+ } catch (IOException e) {
+ } catch (final Exception e) {
+ LOGGER.error("Error preparing plugin context: " + e.getMessage(), e);
+ }
+ });