Bank account
ModLGPL-3.0-only

Bank account

The mod creates a diamond account for each player.

743
Downloads
4
Followers
4 months ago
Updated
📦
6
Versions

📖About Bank account

The mod adds a bank account in diamonds. Which can be withdrawn or deposited at any time.

Mod commands:

English version:

  • /b bal - find out your balance.
  • /b deposit - add the diamonds from your inventory to your account.
  • /b withdraw - withdraw from the account to the inventory.

Русская версия (Доступна без настроек наравне с английской.):

  • /б бал - узнать свой баланс.
  • /б снять <сумма доступная на вашем счете> - снять со счета в инвентарь.
  • /б внести <сумма доступная в вашем инвентаре> - положить алмазы из инвентаря на счет.

Responses to commands are also translated, and you can configure them in the configuration file:

  • "language": "en", - English
  • "language": "ru", - Russian
  • "language": "custom", - displays what is written in "messages": {} < %d > do not change!!
{
  "language": "en", 
  "messages": {
    "balance": "§bYour balance: §f%d diamonds",
    "withdrawSuccess": "§bWithdrew §f%d diamonds§b. New balance: §f%d",
    "depositSuccess": "§bDeposited §f%d diamonds§b. New balance: §f%d",
    "negativeAmount": "§cAmount must be positive!",
    "insufficientFunds": "§cInsufficient funds!",
    "notEnoughSpace": "§cNot enough inventory space! Money returned.",
    "notEnoughDiamonds": "§cNot enough diamonds! You have: §f%d",
    "processingError": "§bWithdrew §f%d diamonds§b (§f%d§b couldn\u0027t fit). New balance: §f%d"
  }
}

In creative, if you give more diamonds than there are free slots, the excess is destroyed. In survival, you simply don't give any diamonds that don't fit.