uconomycashbank

last built 4 days ago
Build #6
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Game4Freak
Do you like this plugin? You can fund the maintenance of this plugin with a donation to Game4Freak.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

CashBank

CashBank is a extension for Uconomy and Advancedzones. It allows you to withdraw and deposit cash. You can restrict it to only be usable in a zone with the cashBank flag. If you want you can add taxes to the /pay command too.

 

 

 

Configuration

You can enable / disable support for AdvancedZones.

You can enable / disable taxation of /pay with a custom tax amount.

You can choose a chat color.

You can add your own bank notes (your own cash currency). This has to be in the order biggest worth to lowest worth.

 

Permissions

Note: The standart /admin group has all possible permissions

cashbank.deposit       — for the basic deposit command

cashbank.deposit.all   — for the /deposit all command

cashbank.withdraw    — for the basic withdraw command

cashbank.withdraw.notes    — for the /withdraw <amount> <maxBankNote> command

 

Commands

/deposit <bankNote|all> <amount>

Example:

/deposit 100 2       — will deposit 2 of your $100 bank notes

/deposit all       — will deposit all your cash

/withdraw <amount> <maxBankNote>

Example:

/withdraw 1234       — will withdraw $1234 from your bank account and give it to you in the biggest possible bank notes

/withdraw 1234 50       — will withdraw $1234 from your bank account and give it to you in the $50 bank note or lower ones

 

AdvancedZones

To enable the AdvancedZones support set useAdvancedZones in the config to true.

To add a cashBank to your zone use: /zone add flag cashBank YourZoneName 

To add a notification of your balance when entering a zone use: /zone add flag notifyBalance YourZoneName

 

Planed

Nothing

 

Other Plugins

AdvancedZones

AdvancedBlacklists

InkognitoMode

CarjackPermissions

EventManager

 

Contact

You want a custom plugin or report a bug? Feel free to contact me 🙂

Game4Freak#9591 on Discord

Game4Freak on Steam

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<CashBankConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <useAdvancedZones>false</useAdvancedZones>
  <usePayTaxation>false</usePayTaxation>
  <payTaxes>0.1</payTaxes>
  <messageColor>green</messageColor>
  <bankNotes>
    <bankNote name="$100">
      <worth>100</worth>
      <ID>1055</ID>
    </bankNote>
    <bankNote name="$50">
      <worth>50</worth>
      <ID>1054</ID>
    </bankNote>
    <bankNote name="$20">
      <worth>20</worth>
      <ID>1053</ID>
    </bankNote>
    <bankNote name="$10">
      <worth>10</worth>
      <ID>1052</ID>
    </bankNote>
    <bankNote name="$5">
      <worth>5</worth>
      <ID>1051</ID>
    </bankNote>
    <bankNote name="Toonie">
      <worth>2</worth>
      <ID>1057</ID>
    </bankNote>
    <bankNote name="Loonie">
      <worth>1</worth>
      <ID>1056</ID>
    </bankNote>
  </bankNotes>
</CashBankConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="balance_notification" Value="Your current balance is: {0} {1} {2}" />
  <Translation Id="taxation_notification" Value="You paid taxes in amount of: {0} {1} {2} ({3}%)" />
  <Translation Id="command_invalid" Value="Invalid! Try {0} {1}" />
  <Translation Id="amount_invalid" Value="Invalid Amount: {0}" />
  <Translation Id="note_invalid" Value="Invalid Bank Note: {0}" />
  <Translation Id="withdraw" Value="You have withdrew: {0} {1} {2}" />
  <Translation Id="withdraw_cant_afford" Value="Your balance does not allow this withdraw" />
  <Translation Id="zone_invalid" Value="You are in no bank" />
  <Translation Id="deposit" Value="You have deposited: {0} {1} {2}" />
  <Translation Id="deposit_invalid" Value="You have nothing to deposit" />
</Translations>

Commands and permissions


/deposit <bankNote|all> <amount>

Permissions: deposit

Deposit money to your account


/withdraw <amount> <maxBankNote>

Permissions: withdraw

Withdraw money from your account


Git changelog


11d90c514aed3f4 2019-05-20 13:51:22

Disabled local copy of dependency

    90a4aa639656e98 2019-05-20 05:38:04

    Fixed small issue to build for harbor

      3094dc818e69b5f 2019-05-20 05:30:19

      Update to version 0.2.1.0

      • Added:
      • Using money symbol from uconomy
      • Fixed:
      • inaccessible method

      4ff874abc464bf4 2019-05-07 18:47:12

      Updated version number

        a8a749d07e6b279 2019-05-07 18:46:44

        Update to version 0.2.0.0

        • Fixed bugs

        0f8d8d6e9fd8f2a 2019-05-07 14:31:28

        Initial commit to version 0.1.0.0

        • Added:
        • Everything xD