-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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)
api/src/main/java/de/minebench/tresor/services/placeholder/Placeholders.java
Outdated
Show resolved
Hide resolved
...i/src/main/java/de/minebench/tresor/providers/placeholderapi/PlaceholderAPIPlaceholders.java
Outdated
Show resolved
Hide resolved
I see your point so i removed the hook method and empty placeholder object this should be better now |
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 |
I'll try to make it better thanks |
No description provided.