Skip to content

Move parsing method to PlaceholderExpansion#824

Draft
Andre601 wants to merge 2 commits intomasterfrom
feature/move-parsing-method
Draft

Move parsing method to PlaceholderExpansion#824
Andre601 wants to merge 2 commits intomasterfrom
feature/move-parsing-method

Conversation

@Andre601
Copy link
Copy Markdown
Collaborator

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

This is a proposal to move the on(Placeholder)Request(...) from the separate PlaceholderHook class to the PlaceholderExpansion class.

The PlaceholderHook is somewhat useless now since it only is used for the aforementioned methods, which can easily be moved to the PlaceholderExpansion class without major issues.
To not have completely breaking changes are the new methods by default simply calling the now deprecated ones, but it should be encouraged to move on to the new methods.

I'll keep this a draft to prevent accidental merging and because I first want to have a discussion here to see the points in favour and against this change (It could also serve as a heads up, IF it would be accepted, so that devs knows what would come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant