BedWars
BedWars copied to clipboard
createGame & arena position control over API
This plugin really rock, and I would like to extend it with some control plugins we made.
The point is to create arena (that I think is done by GameImpl.createGame
method), but unfortunatly is completly unaccessible.
I tried to import the main .jar
file as maven dependency
and call directly createGame
as I normally do for plugins without API, but with no luck.
Can you help me on this ?
Also, I think that would make a great add to the main project API.
our maven repository also contains the plugin itself (it has artifact id just "BedWars" and the rest is same). In the current stable version (0.2.22), the class is not called GameImpl but just Game.
We're going to add this in 0.3.0, but for the time being, you can access internals marked as private using Reflection, other internals can be accessed like the API (keep in mind that they may change unexpectedly). Also we have the plugin uploaded to our repo, so you don't have to shuffle with the plugin jar: https://repo.screamingsandals.org/#/releases/org/screamingsandals/bedwars/BedWars/0.2.22
Okay, seems like it's working. Thanks @Misat11 & @zlataovce for your precious advices. Should I close the issue ?
Definitely it'd be nice to have an API so keep it open for now.