The plugin is still a work in progress. In the future, I’m planning to add multiple currency support, crypto price history, a fancy GUI, CustomModelData support, and more...
Vault link:
https://www.spigotmc.org/resources/vault.34315/
Config.yml:
Code (Text):
# Token Data Information:
# ⚠️ DO NOT CHANGE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING ⚠️
# If you want to change token data, please do it in
# "Token Configuration" and reload the plugin afterwards.
# This section is automatically updated based on calculations
# from Token Configuration.
Token price: 100.0 # BTC price = TokenCapitalization / AllTokens
Tokens left: 10.0 # To add new tokens into circulation,
# use the command: /crypto [token] add [calculation] [amount]
# Changing this value here will NOT automatically
# update "Token all tokens" in Token Configuration.
# -----------------------------------------------------
# Token Configuration:
Token Name: BTC
Token all tokens: 10.0
Token Capitalization: 1000.0
Token Buy Tax: 1.0 # in %
Token Sell Tax: 1.0 # in %
Capitalization sell tax: 1.0 # in %
# ⚠️ Please set a tax for the token.
# If tax is 0, players may duplicate or exploit free tokens
# by manipulating very small decimal numbers.
# Admin Permissions:
BypassAllAdminCommand: crypto.admin.*
CommandCryptoAdminReload: crypto.admin.reload
CommandCryptoAdminAdd: crypto.admin.add
CommandCryptoAdminGive: crypto.admin.give
CommandCryptoAdminSubtract: crypto.admin.subtract
CommandCryptoAdminTake: crypto.admin.take
# Player Permissions:
RequirePlayerCommandsPermissions: false
CommandCryptoBuy: crypto.buy
CommandCryptoGet: crypto.get
CommandCryptoSell: crypto.get
# Debug Mode - for finding bugs (BETA FEATURE)
DebugMode: false
# CryptoMarket Config File
# Plugin Version: 1.0-BETA
# Config Version: 1.0
Commands:
Player Commands:
- /crypto buy [token] [amount in $] – Buy tokens
- /crypto sell [token] [amount] – Sell tokens
- /crypto get [token] – Check your balance
Admin Commands:
- /crypto admin add [token] [tokens/capitalization] [amount] – Add tokens/capitalization
- /crypto admin give [token] [player] [amount] – Give tokens to a player
- /crypto admin subtract [token] [tokens/capitalization] [amount] – Subtract tokens/capitalization
- /crypto admin take [token] [player] [amount] – Take tokens from a player
- /crypto admin reload – Reload the plugin and refresh everything
![[IMG]](//proxy.spigotmc.org/6e3c504cb9ad7d108170a240c9c48ded63353c3f/68747470733a2f2f6273746174732e6f72672f7369676e6174757265732f62756b6b69742f43727970746f4d61726b65742e737667)