BG-Software-LLC / WildChests

Sell chests, auto crafters, storage units, larger chests and more in one plugin!
https://bg-software.com/wildchests/
GNU General Public License v3.0
38 stars 23 forks source link

API bug or I some use the API wrong #65

Closed broken1arrow closed 3 years ago

broken1arrow commented 3 years ago

Minecraft's Version

1.16.5

Plugin's Version

2.2.2

Describe the bug

The api missing access BigInteger getAmount(); in StorageChest .

i use WildChestsAPI.getInstance().getChestsManager().getChests(); to access the class. I could fix it self, but report it ether way :)

To Reproduce

API issue

Additional Information

No response

OmerBenGera commented 3 years ago

I dont understand what the issue is.

broken1arrow commented 3 years ago

I dont understand what the issue is.

Sry, i cant asses getAmount() from Chest and has not find any way to access StorageChest class instead.

So add getAmount() method in Chest class I think solve the issue. I need get the amount for storage unit.

OmerBenGera commented 3 years ago

I dont understand what the issue is.

Sry, i cant asses getAmount() from Chest and has not find any way to access StorageChest class instead.

So add getAmount() method in Chest class I think solve the issue. I need get the amount for storage unit.

Are you using latest API jar? You can find it on https://hub.bg-software.com/

broken1arrow commented 3 years ago

I dont understand what the issue is.

Sry, i cant asses getAmount() from Chest and has not find any way to access StorageChest class instead. So add getAmount() method in Chest class I think solve the issue. I need get the amount for storage unit.

Are you using latest API jar? You can find it on https://hub.bg-software.com/

I think Soo, I downloaded it yesterday.

I use the maven and use the examples on github.

OmerBenGera commented 3 years ago

I dont understand what the issue is.

Sry, i cant asses getAmount() from Chest and has not find any way to access StorageChest class instead. So add getAmount() method in Chest class I think solve the issue. I need get the amount for storage unit.

Are you using latest API jar? You can find it on https://hub.bg-software.com/

I think Soo, I downloaded it yesterday.

I use the maven and use the examples on github.

I think I havwnt updated the maven one in a while. Download the API jar from the link above and use it locally for now.

OmerBenGera commented 3 years ago

Updated the repository.

broken1arrow commented 3 years ago

Updated the repository.

Has the date 03/10/2021 15:32 now and is same thing. Will try your jar instead and see if that works better.

Edit I also try manually add your latest same thing.