mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
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:
parent
e3bc4c4107
commit
d0ebfbbd15
@ -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);
|
||||
+ }
|
||||
+ });
|
||||
|
Loading…
Reference in New Issue
Block a user