765 B
765 B
Grim2.js — startFromText() (satır 170)
function startFromText(c, p, text) {
if (String(mappet.get(STATE_KEY)) === "1") {
p.send("\u00a7c[Acil] Zaten aktif bir yayilim var. Geri Cek ile once toparla.");
return;
}
var spec = parseBlockSpec(text);
var target = mappet.createBlockState(spec.id, spec.meta);
if (!target || target.isAir()) {
p.send("\u00a7c[Acil] Blok bulunamadi veya air secilemez: " + spec.id + " " + spec.meta);
return;
}
p.getStates().setString("acil_last_block", spec.id);
p.getStates().setString("acil_last_meta", String(spec.meta));
startSpread(c, p, target, spec);
}