Add ChameleonPluginBootstrap
to allow users to provide custom plugin creation logic
#259
Closed
1 task done
Labels
area: platform
This involves updating, adding or removing a platform
type: enhancement
This is a feature request or a pull request that adds a feature
type: feature
This adds a new feature
Confirmation
Problem
Chameleon currently creates a new instance of the
ChameleonPlugin
class via reflection.This does not allow for any custom creation logic, and could cause instantiation issues to go undetected until runtime.
Suggested solution
We could add a
ChameleonPluginBootstrap
interface that could be used instead of providing aChameleonPlugin
class.Paper provides a similar functionality: https://docs.papermc.io/paper/dev/getting-started/paper-plugins#bootstrapper
Additional information
No response
The text was updated successfully, but these errors were encountered: