PaperMC / PaperMC/Paper

Paper 1.19.3 casts plugins to JavaPlugin on enable, even though other plugins should be allowed as well

Open
#8,935 9 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: input wanted type: bug
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Other plugins (based on PluginBase for example) would also be loaded

Observed/Actual behavior

Paper casts all plugins to JavaPlugin on the PaperPluginInstanceManager class' enablePlugin function, resulting other types of plugins implemented on PluginBase not be able to load anymore.

Steps/models to reproduce

Download latest PaperMC 1.19.3 version.
Download CraftJS https://github.com/raikasdev/craftjs/releases/tag/1.19.3-broken
Start server

Plugin and Datapack List

CraftJS

Paper version

This server is running Paper version git-Paper-431 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: e574412)

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the PaperPluginInstanceManager class, specifically enablePlugin, and reproduce the failure with CraftJS 1.19.3-broken on Paper git-Paper-431. Confirm that plugin implementations based on PluginBase can load and enable without the reported cast failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.