This plugin establishes an in-game brokerage to allow players to trade the Internet's favorite virtual currency, Bitcoins (BTC), for in-game coins, compatible with many economy plugins, and vice versa. For more information about how Bitcoin works, visit bitcoin.org.
The brokerage works just like a foreign exchange where BTC are bought and sold by players. Each player gets a unique account on the server where they can deposit BTC from their external wallet. From their account, using a server command, they can sell BTC for in-game coins backed by the Vault Plugin. Players can also buy BTC from the server using their accumulated in-game wealth, and cash-out by transferring BTC from the brokerage to their external wallet address.
The admin sets the exchange rate and how much commission to extract from each transaction. The commission can be used to pay server bills. Admins that allow player's to buy BTC should be careful that they do not generate coins through other economy plugins that cannot be backed by BTC when the player goes to cash out.
/btc brokerage - View brokerage information.
/btc account [player] - View account information.
/btc account [player] link [address] - Sets the linked BTC address for payouts.
/btc sell [# coins] - Sells the specified number of coins for BTC.
/btc buy [# coins] - Buys the specified number of coins with BTC.
/btc transfer [# BTC] - Transfers the specified balance to the linked account. '
BitcoinBroker.btc - By default, all players have this permission. It allows access to the commands.
bitcoinUrl: - The URL for the instance of the Bitcoin Wallet the server uses. Default: http://localhost:8332
account: - The named account in the Bitcoin Wallet to use for the brokerage's money. Default: BitcoinBroker
rpcuser: - The user name to connect to the Bitcoin wallet.
rpcpassword: - The password to connect to the Bitcoin wallet.
brokerage:
btcToCoinsCommission: - The amount of commission to take when a player sell BTC for coins. Default: 0.01 (1%)
btcToCoinsRate: - The exchange rate to convert BTC to coins. This is the value of 1 coin in BTC. Default: 0.000001
coinsToBtcCommission: - The amount of commission to take when a player buys BTC. Default: 0.01 (1%)
coinsToBtcRate: - The exchange rate to convert coins to BTC. This is the value of 1 BTC in coins. Default: 1000000
profitAddress: - The Bitcoin address to send BTC from commissions. Example: 1HhFfjKo5zpEXzvEmhz6B7tJr1FaUyEJ1M
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -server -rpcuser=<user name from previous step> -rpcpassword=<password from previous step>
rpcuser: <user name from previous step> rpcpassword: <password from previous step>
23:13:22 [INFO] [BitcoinBroker] Enabling BitcoinBroker v1.0.20121109.0 23:13:22 [INFO] [BitcoinBroker] Connections=8, Total Server Balance=0.00000000