spark is loaded later than plugins.
XXY233 opened this issue · comments
Expected behavior
Plugins should be loaded after spark is loaded.
Observed/Actual behavior
I tried using spark singleton, but the server told me that spark was not loaded yet.
java.lang.IllegalStateException: spark has not loaded yet!
at me.lucko.spark.api.SparkProvider.get(SparkProvider.java:45) ~[spark-api-0.1-20240720.200737-2.jar:?]
If I add a dependency on spark in plugin.yml, the plugin cannot be loaded.
[20:04:04] [Server thread/ERROR]: [ModernPluginLoadingStrategy] Could not load 'plugins/.paper-remapped/myplugin-1.4.1.jar' in 'plugins/.paper-remapped'
org.bukkit.plugin.UnknownDependencyException: Unknown/missing dependency plugins: [spark]. Please download and install these plugins to run
Steps/models to reproduce
no.
Plugin and Datapack List
no.
Paper version
ver
[21:18:03 INFO]: Checking version, please wait...
[21:18:06 INFO]: This server is running Paper version 1.21.1-83-master@2aaf436 (2024-09-17T15:10:44Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: git-Paper-497 (MC: 1.20.4)
Other
No response
The dependency thing not working is a "spark is not a plugin", spark not being loaded yet is likely in part to the fact that it's not triggered until the server starts ticking