MinerHat: Mining cryptocurrency with your Minecraft server (and player) ⛏

Overview

MinerHat

Mining cryptocurrency with your Minecraft server (and player)

MinerHat is a Minecraft server plugin that utilizes your server at low load to mine cryptocurrency. Even more, it supports player contribution. Just let your players share their computing power to mine for you in exchange for in-game bonus!

Features

  • Toggles for local mining and player contribution modules. (In case your server provider disallows mining on their server, or whatever other reasons.)
  • Local Mining
    • Policies: Manage your miners
      • Decide the maximum player count at which the miner should be stopped
    • Timer for auto-switching miner
  • Player Contribution
    • Mining pool implement
    • Revenue factor: It will be multiplied with the actual revenue reported from the mining pool API in order to give your players adorable feedbacks
    • Economy plugin integration: A built-in exchange command which allows players exchanging revenue to your server's currency.
  • Localization Support

Get Started

TO USE LOCAL MINING: You need to put your miner into plugin's directory manually and then configure your mining wallet in the policy file. A detailed tutorial is available at: https://github.com/richardhyy/EusMinerHat/wiki/Quick-Start:-Local-Mining.

FOR PLAYERS WHO WANT TO CONTRIBUTE THEIR COMPUTING POWER: A detailed tutorial will be available soon.

Commands

Player's Commands

Command Description
/minerhat check Checkout revenue
/minerhat revenue Get revenue account information
/minerhat history Check revenue change history
/minerhat mining Get mining information, e.g. mining commandline, server's wallet address, and player's worker name
/minerhat exchange <amount> Exchange revenue to server's currency
/minerhat help Get help for player's commands

Admin's Commands

Command Description
/minerhatadmin status Get miner status
/minerhatadmin log Fetch miner output
/minerhatadmin start Start local miner manually
/minerhatadmin stop Stop local miner manually
/minerhatadmin reload Reload plugin configuration
/minerhatadmin help Get help for admin's commands

Permissions

Commands Permission Node
/minerhat * minerhat.contributor
/minerhatadmin * minerhat.admin

Plugin Directory Structure

──EusMinerHat
  ├─contribution
  │   └─[Player account data (.json)]
  ├─language
  │   └─<Language packs (.json)>
  ├─miner
  │   ├─[Miner dir]
  │   │   └─<Miner Executable>
  │   └─<Miner policies (.json)>
  └─config.yml
You might also like...

Add an event on Spigot API to listen to players kill a player with EnderCrystal

(Minecraft) Add an event on Spigot API to listen to players kill a player with EnderCrystal

Dec 22, 2022

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

Sep 11, 2022

A spigot plugin for spawning a chest when the player dies

A spigot plugin for spawning a chest when the player dies. It supports Holographic Displays, Decent Holograms, ProtocolLib, WorldGuard, and PlotSquared for additional features

Dec 30, 2022

A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata

A basic representation of the 0-player game,

Game-Of-Life-Basic A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata. A cellular automaton is a

Oct 27, 2022

A mod about player interactions, made for Modfest: Singularity.

A mod about player interactions, made for Modfest: Singularity.

Affectionate A mod about affectionate player interactions, made for Modfest: Singularity. What is it? This mod focuses on affectionate player interact

Dec 10, 2022

The most powerfull forge server software (not yet) which aims for high capacity and performance on 1.16.5 modded server.

GoldenForge The most powerfull forge server software (not yet) which aims for high capacity and performance on 1.16.5 modded server. Current work Asyn

Sep 3, 2022

A fast, customizable and compatible open source server for Minecraft: Java Edition

A fast, customizable and compatible open source server for Minecraft: Java Edition

Glowstone A fast, customizable and compatible open source server for Minecraft: Java Edition. Introduction Glowstone is a lightweight, from scratch, o

Dec 31, 2022

A essentials bukkit plugin for your server

A essentials bukkit plugin for your server

👾 A essentials, lightweight, multilanguage, customizable, modular and complex plugin for Minecraft Server

Jan 30, 2022

A FabricMC mod that exposes your local LAN server to the internet with Ngrok.

A FabricMC mod that exposes your local LAN server to the internet with Ngrok.

Ngrok LAN Ngrok LAN is a Fabric mod that enables you to share your singleplayer world with your friends across the globe, all via clicking on the new

Dec 22, 2022
Comments
  • Cannot start despite file being present

    Cannot start despite file being present

    Getting this error whenever I start the miner despite having the file:

    image

    [13:59:27 WARN]:        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1142)
    [13:59:27 WARN]:        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
    [13:59:27 WARN]:        at cc.eumc.eusminerhat.miner.MinerManager.startMining(MinerManager.java:141)
    [13:59:27 WARN]:        at cc.eumc.eusminerhat.miner.MinerManager.checkAndToggleMining(MinerManager.java:115)
    [13:59:27 WARN]:        at cc.eumc.eusminerhat.CheckIntervalTimer.run(CheckIntervalTimer.java:20)
    [13:59:27 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100)
    [13:59:27 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:469)
    [13:59:27 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1517)
    [13:59:27 WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:461)
    [13:59:27 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1426)
    [13:59:27 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1147)
    [13:59:27 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:292)
    [13:59:27 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)
    [13:59:27 WARN]: Caused by: java.io.IOException: error=2, No such file or directory
    [13:59:27 WARN]:        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
    [13:59:27 WARN]:        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:313)
    [13:59:27 WARN]:        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
    [13:59:27 WARN]:        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1109)
    [13:59:27 WARN]:        ... 12 more
    [13:59:27 ERROR]: [EusMinerHat] Failed starting miner: Cannot run program "plugins/EusMinerHat/miner/xmrig/xmrig" (in directory "plugins/EusMinerHat/miner/xmrig"): error=2, No such file or directory
    [13:59:27 INFO]: [EusMinerHat] Miner status changed: stopped
    bug 
    opened by gecko10000 2
Releases(1.1)
  • 1.1(Jun 2, 2021)

    New:

    • Revenue exchange command for exchanging mining revenue to server currency
    • Language pack compatibility check

    Changes:

    • Revenue history now displays time in a format which meets ISO 8601 standard

    Fixes:

    • Fix No such file or directory error starting miner with the default policy on *nix server (thank you @levtey)
    • Revenue history now orders ascending
    • Revenue history now shows negative numbers without redundant minus sign
    • Fix typo in permission nodes (thank you @johnngnky)
    Source code(tar.gz)
    Source code(zip)
    EusMinerHat.jar(57.38 KB)
Owner
Alan_Richard
Alan_Richard
Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cross-chatting between Minecraft and Discord.

DiscordSync Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cros

AeonLucid 4 Dec 20, 2022
Minecraft Spigot 1.16 - plugin for compass tracking other players. MVP contains tracking closest player available.

Compass Tracker Overview Minecraft Spigot 1.16 Plugin. Plugin sets compass target to closest player in the overworld. Created to use with my friends t

INNIX 3 Nov 15, 2021
A minecraft mod that adds colored ping values inside each player's nametag.

Ping Nametags (Fabric) A minecraft mod that adds colored ping values inside each player's nametag. Installation Stable Releases (recommended) The late

Paul Soporan 3 Nov 21, 2021
A Minecraft server proxy with unparalleled server support, scalability, and flexibility

Velocity A Minecraft server proxy with unparalleled server support, scalability, and flexibility. Velocity is licensed under the GPLv3 license. Goals

PaperMC 1.2k Jan 8, 2023
Essentials - Minecraft server command mod - Adds over 100 commands for use in-game to help manage a server

Essentials Development Readme The official repository is at: https://github.com/essentials/Essentials We use NetBeans 7.3 for development. Recommended

Essentials 811 Jan 7, 2023
Blocking the your minecraft plugins to show from server member

BSP Blocking your minecraft server plugins to show. 한국어 README Features Blocking your minecraft server plugins to show. Custom Events. Install Install

Plma75 2 Jan 22, 2022
Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game

Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game, a simple game that played on an 8 by 8 checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop winning strategies.

Soumyadeep Pal 1 Feb 28, 2022
Polydex - a mod allowing you to see player-friendly information about blocks and items on servers

Polydex is a mod allowing you to see player-friendly information about blocks and items on servers. It designed for survival-like, vanilla client compatible servers using Polymer mods or PolyMC, through it can be used in modded or vanilla-content setting!

null 5 Dec 20, 2022
Create: Liftoff is a create addon that hopes to empower the player even more with the industrial age of the create mod and space rockets!

Create: Liftoff Welcome to Create: Liftoff, a mod that hopes to empower the player even more with the industrial age of the create mod and space rocke

Tazer 9 Jun 6, 2022
A fabric mod and api that lets you change player gravity direction

GravityChanger A fabric mod and api that lets you change player gravity direction. Features This mod adds 6 items that let you change your gravity to

null 16 Aug 27, 2022