Bitcoin Broker
- Install Bitcoin Broker
- ???
- Profit.
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.
Features
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.
Commands
/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. '
Permissions
BitcoinBroker.btc - By default, all players have this permission. It allows access to the commands.
Configuration
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
Installation
Minimum Installation (Local Bitcoin Wallet)
- Install the latest version of Bitcoin from Bitcoin.org.
- Decide a user name and password to allow BitcoinBroker to contact the local Bitcoin via RPC.
- Create a batch file to launch Bitcoin with the following contents:
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -server -rpcuser=<user name from previous step> -rpcpassword=<password from previous step>
- Create a config.yml for BitcoinBroker under plugins/BitcoinBroker with the following contents or add these values to the file if it already exists:
rpcuser: <user name from previous step> rpcpassword: <password from previous step>
- Issue the reload command in bukkit. If everything is setup correctly, you will see:
23:13:22 [INFO] [BitcoinBroker] Enabling BitcoinBroker v1.0.20121109.0 23:13:22 [INFO] [BitcoinBroker] Connections=8, Total Server Balance=0.00000000
-
View User Profile
-
Send Message
Posted Feb 15, 2021Please update it to 1.16.5
-
View User Profile
-
Send Message
Posted May 29, 2014cool plugin but not work 1.6.4
-
View User Profile
-
Send Message
Posted Apr 13, 2014Please update, I really love this plugin.
-
View User Profile
-
Send Message
Posted Sep 6, 2013It's sad to see that this plugin isn't more popular.
-
View User Profile
-
Send Message
Posted Jun 20, 2013what is the commission thing about?
Looks like a interesting plugin!