MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / setLock

Method setLock

daemon/src/entity/instance/instance.ts:336–341  ·  view source on GitHub ↗
(bool: boolean)

Source from the content-addressed store, hash-verified

334 }
335
336 setLock(bool: boolean) {
337 if (this.lock === true && bool === true) {
338 throw new Error($t("TXT_CODE_ca030197"));
339 }
340 this.lock = bool;
341 }
342
343 // force the command to execute
344 async forceExec(command: InstanceCommand) {

Callers 6

execFunction · 0.80
execMethod · 0.80
stoppedMethod · 0.80
execMethod · 0.80
stoppedMethod · 0.80
execMethod · 0.80

Calls 1

$tFunction · 0.90

Tested by

no test coverage detected