Files

33 lines
1.0 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.
# TP.js — tpHandler() (satır 114)
[← TP.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](tpHandler.md)
```javascript
if (name.toLowerCase() === ("" + p.getName()).toLowerCase()) {
p.send("§c[Athena] §fKendine ışınlanamazsın.");
playSound(p, "minecraft:note.bass");
return;
}
var target = findOnlinePlayer(c, name);
if (!target) {
p.send("§c[Athena] §f§lOyuncu Bulunamadı veya Çevrimdışı §7(" + name + ")");
playSound(p, "minecraft:mob.villager.no");
return;
}
// Önceki konumu kaydet
savePos(p);
// Geçmişe ekle
pushHistory(states, target.getName());
p.closeUI();
p.send("§b[Athena] §f" + target.getName() + " §7adlı oyuncuya ışınlanılıyor...");
c.executeCommand("/tp " + p.getName() + " " + target.getName());
playSound(p, "minecraft:mob.endermen.portal");
}
}
```