VCMinerStarted
Skip to content
mnscript
VCMinerStarted(VCMiner) 

Description ​

Invoked when a connected VCMiner starts mining.

Arguments ​

VCMiner - The VCMiner which started.

Example ​

msc
using Console;
using Event;
using Peripheral;

// Registers an event listener for when a VCMiner starts.

function OnVCMinerStarted(VCMiner miner){
    Console.WriteLine("A VCMiner was started!");
}

Event.AddListener("VCMinerStarted", "vcminer_stopped", "OnVCMinerStarted");