Files

39 lines
1.1 KiB
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.
# Darklord.js — sendGeneralTelepathy() (satır 660)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function sendGeneralTelepathy(c, sender, senderRole, text)
{
var clean = trim(text);
if (clean.length > TEXTBOX_LIMIT) clean = clean.substring(0, TEXTBOX_LIMIT);
var message = "\u00a74\u00a7l[Telepati Genel] " + senderRole.color + senderRole.rp + " \u00a78>> \u00a7f" + clean;
var sent = 0;
for (var i = 0; i < MEMBERS.length; i++)
{
var role = MEMBERS[i];
var target = findPlayer(c, role.player);
if (!target && equalsName(sender.getName(), role.player)) target = sender;
if (!target) continue;
try
{
target.send(message);
sent++;
var pos = target.getPosition();
play(target.getWorld(), "minecraft:block.enchantment_table.use", pos.x, pos.y + 1.0, pos.z, 0.7, 0.68);
}
catch (e1) {}
}
if (sent === 0)
{
sender.send(TAG + "\u00a7eAktif DarkBlood baglantisi yok.");
}
}
```