VCMinerStopped
Skip to content
mnscript
VCMinerStopped(VCMiner) 

Description ​

Invoked when a connected VCMiner stops mining.

Arguments ​

VCMiner - The VCMiner which stopped mining.

Example ​

msc
using Console;
using Event;
using Peripheral;

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

function OnVCMinerStopped(VCMiner miner){
    Console.WriteLine("A VCMiner was stopped!");
}

Event.AddListener("VCMinerStopped", "vcminer_stopped", "OnVCMinerStopped");