Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholder abstraction (#9) #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eyvallahabi
Copy link

No description provided.

Copy link
Member

@Phoenix616 Phoenix616 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First thank you for your pull request! Looks overall quite good!

I have a couple questions about the design though (see comments) as well as the request that you add licensing headers to the java files. (Should ideally be LGPLv3 in the api module and GPLv3 in the rest but you can of course choose any (L)GPLv3 compatible license that suits you which can be distributed as a combined binary under GPLv3. As it's right now one could argue that the code is proprietary and couldn't be used unless one assumes the license from the project description which isn't the best legal ground imo :S)

@eyvallahabi
Copy link
Author

I see your point so i removed the hook method and empty placeholder object this should be better now

@Phoenix616
Copy link
Member

Thanks for adjusting that.

I thought a bit more about this design though and I'm not sure I like the way placeholders are registered. Wouldn't it make more sense to directly register into and query from the providing plugin itself (if it allows for that) and only fall back to a manual map if the plugin does not allow such a thing?

Also as it's designed now one could not register placeholders that take dynamic input via the parameter name. Did you consider that and have a good idea to solve that? Maybe the whole concept of having a Placeholder class doesn't really fit with that seeing as PlaceholderAPI itself doesn't even seem to use that :S

@eyvallahabi
Copy link
Author

I'll try to make it better thanks

@Phoenix616 Phoenix616 changed the title placeholder abstraction placeholder abstraction (#9) Jun 7, 2024
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.

2 participants