v .7.0

Details

  • Filename
    DynamicEconomy.jar
  • Uploaded by
  • Uploaded
    Feb 23, 2012
  • Size
    121.23 KB
  • Downloads
    318
  • MD5
    7f3b6d526958a0b9d3d8387550b1eac9

Supported Bukkit Versions

  • CB 1.1-R4

Changelog

  • Loans! Featuring:
    • Custom Interest-Rate (And Dynamic Interest rate coming in v .7.1!)
    • You set the time that users pay the money back in (anywhere from 1 minute to infinity minutes!)
    • You choose how many loans users can have
    • You choose the minimum and maximum loan amounts
    • If you'd like, you can even choose an economy account that acts as a "bank", loans for users will be taken out of here, and the money users pay back will be returned here.
    • Set how often the bank will check for overdue loans; by default, every 15 seconds users will be checked for loans.
  • So, how does it work?
    • Users can get a loan by calling /loan (amount)
    • This loan and it's information is stored in loans.yml
    • In the time you prescribed in config.yml, the bank will automatically take whatever money the user owes from their account

So, If I'm bob, and I request $500, and the interest is 10%, I'll pay back $550. In how long? Depends on config.yml. Here's the new fields:

use-loans: (true/false) Turns off or on the three new loan commands

interest-rate: (any value, but IR is taken as decimal, so .1 is 10%)

payback-time: (time, in minutes, that the bank will wait until collecting the loan repayment). So if this is 20, the bank will take the $550 bob owes 20 minutes after he gets his loan

max-num-loans: (any whole number greater than or equal to 1) The number of loans any user can have at one moment.

max-loan-amount: (maximum $ amount per loan)

min-loan-amount: (minimum $ amount per loan)

use-loan-account: (true/false) whether you want to use an economy account to withdraw loans from, and return loan payments to

loan-account-name: (if above is true, this is the username for the account)

loan-check-interval: (how often the bank will check for overdue loans). It's measured in "ticks". So, setting 20 for this equals one second. The default is 300, aka 15 seconds. Every 15 seconds, the bank will check all users whether they have their loan due. If so, it'll withdraw the money from their account and notify them.

New commands:

/loan [amount]
Lets you borrow the given amount
/curloans (page #)
Lists all your loans if no page # is provided, or the loan you specify (if you allow more than one loan, the user can check loan #1, or loan #2, or loan #3, etc, by choosing a page #)
/curinterest
Tells user current interest rate on loans.

Permissions: dynamiceconomy.loan dynamiceconomy.curinterest

Upcoming features: Dynamic Interest Rates Loan-Payment notifications: Notify users every x minutes that they have a loan due in y minutes Bug Fixes; for those of you who submitted issues on github, I'm looking into it, I just wanted to release this today

Enjoy!