Files

25 lines
701 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.
# spectator-auto20s.js — beginEffect() (satır 151)
[← spectator-auto20s.js](index.md) · [← Master](../../wiki.md)
Parça 3/3 · [önceki](beginEffect-2.md)
```javascript
? "§c§l" + remaining + " §7sn"
: "§f§l" + remaining + " §7sn";
try { pp.sendStatusMessage(barText, true); }
catch (e) { try { pp.sendActionBar(barText); } catch (e2) {} }
// Son 5 saniyede ses — sadece bu oyuncuya
if (remaining <= 5) {
pp.playStaticSound("minecraft:block.note.bass", 1.5, 0.8);
}
remaining--;
ctx.scheduleScript(20, tick);
}
c.scheduleScript(20, tick);
}
```