Skip to content

Paper fails to load plugins with dependencies through API #8971

@MetallicGoat

Description

@MetallicGoat

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

  1. Create a plugin that can load another plugin from an addons folder
  2. Create another plugin that depends on the first plugin
  3. Place the second plugin in the first plugins addon folder
  4. Load the second plugin from the addons folder (through a command or something) using Bukkit.getPluginManager().loadPlugin(file)
  5. 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

status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.

Type

No fields configured for Bug.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions