Skip to content

Parameter injection #12

@lilearnhardt

Description

@lilearnhardt

Is your feature request related to a problem?

When writing commands, you have to acquire context about your sender (for example, plugin User object, player's team, or current minigame). By default, you have to write code in your command executors, and that may produce many boilerplate.

Describe the solution you'd like.

Implement a parameter injection feature: for a specific type of arguments in your command methods, you register a provider that will get required value and pass it to the executor, or null if not present. May also add a way to cancel command execution (similar to requirements), for example when required value is absent.

Describe alternatives you've considered.

None

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions