-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Paper fails to load plugins with dependencies through API #8971
Description
Expected behavior
When a plugin tries to load another plugin (from some location outside of the plugins folder) the plugin's dependencies should be checked against the plugins that are currently loaded on the server, and be permitted to enable if present.
Observed/Actual behavior
When a plugin tries to load another plugin (from some location outside of the plugins folder) paper says the dependencies of the plugin being loaded are missing (even if they are not) and fails to enable the plugin.
Steps/models to reproduce
- Create a plugin that can load another plugin from an addons folder
- Create another plugin that depends on the first plugin
- Place the second plugin in the first plugins addon folder
- Load the second plugin from the addons folder (through a command or something) using Bukkit.getPluginManager().loadPlugin(file)
- You will receive an error like this https://pastebin.com/DLYc6Q6n
Plugin and Datapack List
- MBedwars (Our plugin)
- ExtraSpectialItems (The plugin being loaded from an addons folder of MBedwars)
- PlaceholderAPI
Paper version
[23:40:59 INFO]: This server is running Paper version git-Paper-448 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: 155aa36) You are running the latest version
Previous version: git-Paper-399 (MC: 1.19.3)
Other
We have been using this API for close to a year now, and was working great until a fairly recent Paper update. I believe the API was broken in Paper's move to their own plugin system, as it works fine on the latest spigot version. Let me know if you would like me to test anything, or need more detailed info. Thanks everyone!
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackProjects
Status