EssentialsX

EssentialsX

2M Downloads

When Tax account is negative essentials denies payments to it EssentialsX Economy: FAILURE - Loan was not permitted!

nnnarvaez opened this issue ยท 2 comments

commented

Type of bug

Compatibility issue, Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=a1c3e5bc587a4eb7a6f70ad0fd5200e6

Error log (if applicable)

no

Bug description

Using QuickShop reremake when tax account is in negative balance players cannot create shops, the error returned is:

[18:38:38 ERROR]: [QuickShop] EconomyTransaction Failed, last error:Failed to deposit 200.0 to player e6057ce3-7297-354d-aaaf-a0d07fd62f8e account. LastError: EssentialsX Economy: FAILURE - Loan was not permitted!
[18:38:38 ERROR]: [QuickShop] Tips: If you see any economy plugin name appears above, please don't ask QuickShop support. Contact with developer of economy plugin. QuickShop didn't process the transaction, we only receive the transaction result from your economy plugin.
[18:38:42 ERROR]: [QuickShop] EconomyTransaction Failed, last error:Failed to deposit 200.0 to player e6057ce3-7297-354d-aaaf-a0d07fd62f8e account. LastError: EssentialsX Economy: FAILURE - Loan was not permitted!
[18:38:42 ERROR]: [QuickShop] Tips: If you see any economy plugin name appears above, please don't ask QuickShop support. Contact with developer of economy plugin. QuickShop didn't process the transaction, we only receive the transaction result from your economy plugin.

In essentials loans are allowed up to -40000 and the tax account has essentials.eco.loan permission

Opened an issue on their GIT and they told me it was an essentials problem you can see it here:

Steps to reproduce

....

Expected behaviour

account in negative balance able to receive payments

Actual behaviour

EssentialsX Economy: FAILURE - Loan was not permitted!

commented

This is also happening to me. If the added money is not enough to get the recipient out of debt then it says Loan is not permitted.

This is because adding money is implemented using setMoney which throws NoLoanPermittedException if the final result is negative.

commented

Can you attach a copy of your Essentials user data for the "tax account".