CryptoMining - Have fun mining cryptocurrency with a cool computer and GPUs!

RoinujNosde

Feedback score
0
Posts
12
Reactions
2
Resources
0
discord.png
Join our Discord server to get support!

(Support will be given only if you have purchased the plugin)
CryptoMining

Add-on for CryptoMarket that adds the ability to mine cryptocurrency with customizable GPUs and a cool computer! ;)




Features
- Cool computer and desk
- Custom head textures
- Unlimited GPU models
- Customizable earnings and electricity cost
- MySQL and SQLite support

Screenshots
upload_2021-6-25_22-28-35.png

upload_2021-6-25_22-32-23.png


Configuration
YAML:
mysql:
  enabled: false #if disabled, SQLite will be used
  hostname: "localhost"
  port: 3306
  database: cryptomining
  username: "root"
  password: ""
messages:
  no_permission: "&cYou don't have permission to do that!"
  computer_placed: "&aSuccessfully placed your computer!"
  computer_overlaps: "&cCannot place the computer here. Is it overlapping another computer?"
  given_computer: "&aSuccessfully given computer to %s!"
  given_gpu: "&aSuccessfully given GPU %s to %s!"
  not_owner: "&cThis computer is not yours!"
  removed_invalid: "&aRemoved invalid computers!"
  max_computers_per_chunk: "&cThere are too many computers in this chunk. Go somewhere else!"
  max_computers_per_player: "&cYou placed too many computers!"
  gui_computer_balance: "&bBalance"
  gui_computer_balance_lore: "&a%.8f%s\n \n&bLeft click to withdraw"
  gui_computer_earnings: "&bEarnings per hour"
  gui_computer_earnings_lore: "&a%.8f%s"
  gui_computer_electricity: "&bElectricity cost"
  gui_computer_electricity_lore: "&a%.8f%s"
  withdraw: "&aYou successfully withdraw %.8f%s!"
  error_rejoin: "&cThere was a problem on performing this action. Try rejoining the server!"
payment_only_if: #Here are some requirements for computers to mine
  chunk_is_loaded: true
  player_is_online: true
max_computers: #Set these to 0 to disable
  per_player: 0
  per_chunk: 0
computer:
  name: "&aComputer"
  lore: "\n&bPlace your computer to start mining!"
  type: "PLAYER_HEAD"
  value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTg2ZjcyYzE2YjFlOWZlNmUwOTllNzZiNWY3YTg4NGZiNzgyY2ZjYzU4OGM5NWM0ZTM4M2RjNTI3ZDFiODQifX19"
coin_to_mine: "BTC" #The coin that will be mined
gpu:
  lore: "\n&8Earnings per hour: &a%.8f%s\n&8Electricity cost: &a%.8f%s\n&8Durability:&a %d \n&4ID: %d"
  regex: #These regexes are used to find the durability and ID of the GPU
    durability: ".*Durability.*\\s+(?<value>[\\d]+).*"
    id: ".*ID.*\\s+(?<value>[\\d]+).*"
gpus:
  3080:
    model: "NVIDIA GeForce RTX 3080" #the GPU display name
    electricityCost: 0.05 #the electricity cost per hour of the GPU (it will be divided by 1000)
    earningsPerHour: 0.1 #the earnings per hour of the GPU (it will be divided by 1000)
    durability: 10800 #the durability of the GPU (1 per minute, 43200 == 1 month)
    type: "PLAYER_HEAD" #the type of the item
    #the texture value of the head (you can find more here: https://minecraft-heads.com/custom-heads)
    value:  "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODgzZGQwZjkwZGYwNWZlNmEwOWFhY2NhZjU0YmMwNDNlNDU1ZTFjODY1YmRhMWZkMjcyZTNmNDdmYjliYjkxMCJ9fX0="
  2060:
    model: "NVIDIA GeForce RTX 2060"
    electricityCost: 0.01
    earningsPerHour: 0.015
    durability: 86400
    type: "PLAYER_HEAD"
    value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjk0NTg4NmZjNDBkZmQ3ZGNiMDk1MzFmMTNhN2I1NWRhZTkyZGU1MjI1NGRhM2Q1MzYzNmVmOTNiZGM1NzEifX19"
  580:
    model: "AMD Radeon RX 580"
    electricityCost: 0.01
    earningsPerHour: 0.03
    durability: 43200
    type: "PLAYER_HEAD"
    value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjMzYmE1ZjJlZDE0ZDFmYzY0YzI5ODQ1YTA3MTNhN2ExMTkyOWM1OTE1ZjZjOTQyYTNlM2E2ZGEzZTkwMjUifX19"
heads:
  keyboard: #the texture values of the keyboard (more here: https://minecraft-heads.com/custom-heads)
    1: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDg0NDQwYjEyMDA3ZmNiNjA3NGNhODA1ZWFjZjVjYTU4MThkNzA5YWQ2YWE3ZjZlNTAwNTQ0Y2I3YTJlNjQwOCJ9fX0="
    2: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjcyMDIwYTcwZTQwMjBjNWNkYzAxZDM5MzVjOTIzYTM3M2FhMjE3YzZiYTUyZWQ2NzY4ZDUxYWVkOWM2Mjc1NiJ9fX0="


Commands
- /cminer give computer <player>: gives the computer item to a player
- /cminer give gpu <id> <durability> <player>: gives a GPU item to a player
- /cminer remove invalid: removes invalid computers

Permissions
- cryptomining.admin.remove.invalid: Allows using the remove invalid command
- cryptomining.admin.give: Allows giving computers or GPUs to players
- cryptomining.admin.open: Allows opening any computer, while sneaking
- cryptomining.admin.destroy: Allows destroying any computer, while sneaking
- cryptomining.player.place.computer: Allows placing a computer
- cryptomining.player.*: all player permissions
- cryptomining.admin.*: all admin permissions

Dependencies
- CryptoMarket

- Vault and an economy plugin

Download:
https://www.spigotmc.org/resources/cryptomining.93642/
 
Type
Offering

Attachments

  • upload_2021-6-25_22-28-35.png
    upload_2021-6-25_22-28-35.png
    140.3 KB · Views: 281
  • upload_2021-6-25_22-32-23.png
    upload_2021-6-25_22-32-23.png
    105.6 KB · Views: 285
  • discord.png
    discord.png
    9.3 KB · Views: 23
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Rahul.

human
Premium
Feedback score
15
Posts
982
Reactions
275
Resources
2
Nice concept. Might wanna change the font colour for people using dark mode.
upload_2021-8-12_15-58-44.png
upload_2021-8-12_15-58-56.png
 

Attachments

  • upload_2021-8-12_15-58-44.png
    upload_2021-8-12_15-58-44.png
    37.6 KB · Views: 232
  • upload_2021-8-12_15-58-56.png
    upload_2021-8-12_15-58-56.png
    35 KB · Views: 214
Top