Kuro's Economy Docs
  • Kuro's Economy Mod
  • Basic Contents
    • Blocks
    • Items
  • Commands
  • PayDay System
    • PayDay
    • Jobs
  • Contracts
  • Taxes and Interest
  • Server Owners
    • Server Storage
Powered by GitBook
On this page
  • Player contracts
  • How does it work?
  • What if B is offline?
  • Commands
  • Bank Contracts
  • Commands

Contracts

Contracts are used as a way to repeatedly transfer money to a player, without the need to manually take care of making a payment. There are two types of contracts.

Player contracts

How does it work?

Let's make an example: Player A has a contract with player B. On A's PayDay, money will be subtracted from his account and stored into B's "Buffer". Later on, on B's PayDay, he will finally receive the money from the contract with A that was stored inside the buffer.

What if B is offline?

Contracts work with a "push" system. This means that on the sender's PayDay, he will send money to a buffer file. It doesn't matter if the receiver is online or offline, as long as the sender has a PayDay (and is able to pay the bill), B will eventually receive his money.

If A has 5 PayDays while B is offline, B will simply receive 5x the money on his next PayDay. This ensures that you can't dodge payments or miss out on them while not playing.

If you can't pay a contract due to insufficient balance, contracts will be automatically cancelled. If online, the receiver will see a message.

Commands

/contract create [player] [amount] [name of contract]

Creates a contract with another player. The contract creator will always be the sender. You can't use a contract name twice.

/contract cancel [player] [name of contract]

Cancels the selected contract. The receiver will see a message if they are online.

/contract list

Lists all of your active contracts, incoming and outgoing.


Bank Contracts

Unlike regular contracts, bank contracts involve only one player. On each PayDay, the player will either receive or send money to the bank (server).

Bank contracts can only be created and cancelled by players with OP permission.

Commands

/bankcontract create [player] [amount] [name]
/bankcontract cancel [player] [name]
/bankcontract list

Needs OP

PreviousJobsNextTaxes and Interest

Last updated 4 days ago