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

Dependency fail when trying to load plugin jar #26

Open
cupang-afk opened this issue Mar 18, 2023 · 5 comments
Open

Dependency fail when trying to load plugin jar #26

cupang-afk opened this issue Mar 18, 2023 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed v3 Targeting version 3

Comments

@cupang-afk
Copy link

i want to load this plugin ActionAnnouncer
the plugin require Vault as dependency

i got

[11:55:29 ERROR]: [ModernPluginLoadingStrategy] Could not load './plugins/AnnouncerPlus-1.3.4.jar' in './plugins'
org.bukkit.plugin.UnknownDependencyException: Unknown/missing dependency plugins: [Vault]. Please download and install these plugins to run 'AnnouncerPlus'.
	at io.papermc.paper.plugin.entrypoint.strategy.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:80) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:35) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at io.papermc.paper.plugin.manager.SingularRuntimePluginProviderStorage.enter(SingularRuntimePluginProviderStorage.java:63) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at io.papermc.paper.plugin.manager.RuntimePluginEntrypointHandler.enter(RuntimePluginEntrypointHandler.java:40) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.loadPlugin(PaperPluginInstanceManager.java:121) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.loadPlugin(PaperPluginManagerImpl.java:82) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:406) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
	at net.lenni0451.spm.utils.PluginUtils.loadPlugin(PluginUtils.java:249) ~[PluginManager.jar:?]
	at net.lenni0451.spm.commands.subs.Load_Sub.execute(Load_Sub.java:55) ~[PluginManager.jar:?]
	at net.lenni0451.spm.commands.PluginManager_Command.lambda$onCommand$0(PluginManager_Command.java:94) ~[PluginManager.jar:?]
	at net.lenni0451.spm.commands.PluginManager_Command.onCommand(PluginManager_Command.java:110) ~[PluginManager.jar:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:925) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchServerCommand(CraftServer.java:888) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:542) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:489) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1933]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

by using command pluginmanager list

i can confirm vault is loaded

[11:59:57 INFO]:  - Vault 1.7.3-b131
[11:59:57 INFO]:  - VentureChat 3.5.0
[11:59:57 INFO]:  - ViaBackwards 4.6.1
[11:59:57 INFO]:  - ViaVersion 4.6.1
and the rest of plugins

server version

[12:03:07 INFO]: Current: git-Purpur-1933 (MC: 1.19.3)*
@Lenni0451 Lenni0451 added bug Something isn't working help wanted Extra attention is needed v3 Targeting version 3 labels Mar 18, 2023
@Lenni0451
Copy link
Owner

This is sadly an issue I am unable to fix. Newer versions of Paper and it's forks (like Purpur) made many changes to the way how plugins are loaded. Paper 1.19.3 since build 404 expects all plugins to be loaded at the same time. Currently I don't know any way around this limitation

@Lenni0451 Lenni0451 pinned this issue Mar 18, 2023
@cupang-afk
Copy link
Author

Paper 1.19.3 since build 404 expects all plugins to be loaded at the same time

so that is the case

i also tried other plugin manager like PlugWoman and it show same behaviour :(

@patyhank
Copy link

patyhank commented Apr 15, 2023

I have modified the plugin to make the feature available temporarily.
SpigotPluginManager.zip

*This is the version I took for my own use. This version ignores the depend field so that Paper can read it normally (other depends are loaded as usual when running)

@Lenni0451
Copy link
Owner

I have modified the plugin to make the feature available temporarily. SpigotPluginManager.zip

*This is the version I took for my own use. This version ignores the depend field so that Paper can read it normally (other depends are loaded as usual when running)

Wow, this is really cool. Would you be able to share the modifications you made or maybe even open a pull request?

@patyhank
Copy link

Wow, this is really cool. Would you be able to share the modifications you made or maybe even open a pull request?

https://github.com/patyhank/SpigotPluginManager

I committed the changes in my fork
It will need to use the paper-server, so it must first compile the paper and publish it to the Local Maven Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed v3 Targeting version 3
Projects
None yet
Development

No branches or pull requests

3 participants