Skip to content

Not a complete Vault economy provider #198

@Azarios

Description

@Azarios

Hello!

It seems that BankAccounts does not implement the full set of Vault economy methods. For example:

  • Vault can detect BankAccounts as an economy provider, but crucial methods like /balance, depositPlayer, or withdrawPlayer are not defined, so Vault-dependent plugins (e.g., Shopkeepers Addon with physical currency) cannot update BankAccounts balances correctly.
  • With LiteEco as the Vault provider, these operations work as expected, including admin shops that convert between physical currency and digital balances.

Expected behavior:

  • BankAccounts should implement all standard Vault economy methods (getBalance, has, depositPlayer, withdrawPlayer, etc.) so that Vault-dependent plugins fully interact with BankAccounts balances.
  • This would allow using BankAccounts as a Vault backend while keeping features like accounts, companies, and future interest calculations functional.

Environment:

  • BankAccounts v1.11.1
  • Vault v1.7.4
  • Spigot/Paper 1.21.10
  • Shopkeepers + ShopkeepersAddon (physical currency)

In these screenshots, we can see an inconsistency between vault balances (via LiteEco) and bankAccounts. The correct balance is Vault's. Certain Vault actions not supported by bankAccounts did not change the balance, even though they are supported by LiteEco.
Image
Image
Image
Image

I precise that, before adding LiteEco, I try to use only bankAccounts as Vault economy provider, but since it does not define all the necessary methods, Vault-compatible plugins do not consider it a Vault economy provider (visible in the logs with Shopkeepers, for example: “[15:26:12] [Server thread/ERROR]: [ShopkeepersAddon] No economy provider found! Please install an economy plugin like EssentialsX, CMILib, etc.”).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions