[Question] PEX API in my plugin?
Kev575 opened this issue ยท 3 comments
Hey everyone,
I have a question. Am I allowed to add PEX support to my plugin, but in another way you think.
I'm currently coding at my spigot plugin KevsPermissions GitHub SpigotMC.
I would create the class PermissionsEx.java and add every method from the original one.
First of all - would that work?
And the more important one - am I allowed to do that?
Kind Regards
Kev575 :)
In theory that would work -- but doing that has some chance of requiring your plugin to be released under the GPLv2 or later (mostly depending on how various court cases on the copyrightability of APIs get resolved (Speaking from US copyright law here) iirc). Also, it's probably a bad idea since PEX 1.x's API is not that great (and requires implementing a bunch of other classes too) -- just providing an implementation of Vault services is probably the best way to go, since that's an actual API designed to be implemented by multiple permissions plugins.