Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spark is loaded later than plugins. #11416

Open
XXY233 opened this issue Sep 19, 2024 · 1 comment
Open

spark is loaded later than plugins. #11416

XXY233 opened this issue Sep 19, 2024 · 1 comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.1 Game version 1.21.1

Comments

@XXY233
Copy link

XXY233 commented Sep 19, 2024

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

@XXY233 XXY233 added status: needs triage type: bug Something doesn't work as it was intended to. labels Sep 19, 2024
@papermc-sniffer papermc-sniffer bot added the version: 1.21.1 Game version 1.21.1 label Sep 19, 2024
@papermc-projects papermc-projects bot moved this to 🕑 Needs Triage in Issues: Bugs Sep 19, 2024
@electronicboy
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.1 Game version 1.21.1
Projects
Status: 🕑 Needs Triage
Development

No branches or pull requests

2 participants