BedWars icon indicating copy to clipboard operation
BedWars copied to clipboard

createGame & arena position control over API

Open DEADF00D opened this issue 3 years ago • 4 comments

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.

DEADF00D avatar Dec 29 '21 17:12 DEADF00D

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.

Misat11 avatar Dec 29 '21 17:12 Misat11

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

zlataovce avatar Dec 29 '21 17:12 zlataovce

Okay, seems like it's working. Thanks @Misat11 & @zlataovce for your precious advices. Should I close the issue ?

DEADF00D avatar Jan 08 '22 00:01 DEADF00D

Definitely it'd be nice to have an API so keep it open for now.

Misat11 avatar Jan 08 '22 08:01 Misat11