Skip to content

Plugin dependencies of paper plugins fail to load as of build 503 #9114

Description

@WiIIiam278

Expected behavior

The changes introduced in #9068 break the loading of plugin dependencies for paper plugins.

I have a plugin that defines a paper-plugin.yml file which contains several dependencies.

paper-plugin.yml snippet
dependencies:
  - name: Vault
    required: false
  - name: RedisEconomy
    required: false
  - name: PlaceholderAPI
    required: false
  - name: dynmap
    required: false
  - name: BlueMap
    required: false
  - name: Plan
    required: false
  - name: Pl3xMap
    required: false
load-before:
  - name: Essentials
load-after:
  - name: Vault
  - name: RedisEconomy
  - name: PlaceholderAPI
  - name: dynmap
  - name: BlueMap
  - name: Plan
  - name: Pl3xMap

On builds 502 and below, on servers with (for example) Dynmap installed alongside my plugin, the hook I wrote for Dynmap loads fine.

Observed/Actual behavior

On builds 503 and up, Dynmap's API is not added to the classpath of my plugin and throws a ClassNotFound exception when trying to load

stack trace provided by an end user

image

The same is true with other plugin API hooks written for my plugin. Note that I wrote a custom loader for my plugin that loads some libraries; this is unrelated and these libraries load fine, but for reference here's the class.

Steps/models to reproduce

Download HuskHomes v4.1.1 https://modrinth.com/plugin/huskhomes/version/4.1.1
Download Dynmap
Install HuskHomes on your Paper (build 503+) server
Ensure HuskHomes' dynmap hook is turned ON in its config
Observe as it throws the exception

Plugin and Datapack List

HuskHomes
Dynmap

Paper version

build 506-8be7a60

Other

No response

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.version: 1.19Game version 1.19

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions