3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 04:20:04 +01:00

Properly handle load before plugins in legacy loading (#8962)

Dieser Commit ist enthalten in:
Jake Potrebic 2023-03-12 11:00:02 -07:00 committet von GitHub
Ursprung 18470db17f
Commit 155aa36d89
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -2165,7 +2165,7 @@ index 0000000000000000000000000000000000000000..a9bca905eba67972e4d1b07b1d243272
+}
diff --git a/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java b/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java
new file mode 100644
index 0000000000000000000000000000000000000000..779f6980a71db8df68c9cf20784976409d13929e
index 0000000000000000000000000000000000000000..2f4d0e04676d000afacd7e5354551e77922b2dcf
--- /dev/null
+++ b/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java
@@ -0,0 +1,269 @@
@ -2283,7 +2283,7 @@ index 0000000000000000000000000000000000000000..779f6980a71db8df68c9cf2078497640
+ }
+ }
+
+ Collection<String> loadBeforeSet = provider.getMeta().getPluginSoftDependencies();
+ Collection<String> loadBeforeSet = provider.getMeta().getLoadBeforePlugins();
+ if (loadBeforeSet != null && !loadBeforeSet.isEmpty()) {
+ for (String loadBeforeTarget : loadBeforeSet) {
+ if (softDependencies.containsKey(loadBeforeTarget)) {
@ -5857,7 +5857,7 @@ index 0000000000000000000000000000000000000000..b2a6544e321fa61c58bdf5684231de10
+}
diff --git a/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java b/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java
new file mode 100644
index 0000000000000000000000000000000000000000..36f8dc31394333bb9aaa9341014037a4c5083683
index 0000000000000000000000000000000000000000..d5db789074ca5a9e005c26a221ee3879252b3d6c
--- /dev/null
+++ b/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java
@@ -0,0 +1,190 @@