-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Bug] Paying with player's inventory causes null pointer exception (feat. Towny Adv & TownyProvinces) #166
Comments
I don't think this bug is related to Towny because I am having the same problem on my test server without Towny. Using /eco and /moneyadmin to remove money from players causes a NPE if the player does not have the money in their chest. This is causing an issue for me because I am trying to write a denizen script that removes money from a player's balance and gives them an item. The money in the player's inventory is accounted for in the player's balance, which causes them to receive the item, but the money is not removed due to the NPE. I will be unable to use Gringotts until this issue is fixed. Server Type: Latest Paper 1.20.4
|
Please try this test build https://github.com/weaves7/Gringotts/releases/tag/v.2.12.7-SNAPSHOT |
Hello, sorry for taking so long to get back to you. The fix works! Thanks! |
Describe the bug
Null pointer exception if paying for new town (Towny Adv & TownyProvinces) with player's inventory money. If money was insiade of chest everything is fine so I assume that may be gringott's error.
To Reproduce (PRE)
Steps to reproduce the behavior:
To Reproduce
/t new test
commandExpected behavior
I assume it's trying get the money from chest instead of player's inventory
at org.gestern.gringotts.GringottsAccount.removeFromShulkerBox(GringottsAccount.java:332) ~[gringotts.jar:?]
I guess that's why paying with chest works normally but with inventory's money not.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: