Files

25 lines
765 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Grim2.js — startFromText() (satır 170)
[← Grim2.js](index.md) · [← Master](../../wiki.md)
```javascript
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);
}
```