Files

21 lines
512 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.
# TelekinesiLal.js — findPlayer() (satır 583)
[← TelekinesiLal.js](index.md) · [← Master](../../wiki.md)
```javascript
function findPlayer(c, name) {
try {
var direct = c.getServer().getPlayer(name);
if (direct) return direct;
} catch (e1) {}
var players = getPlayers(c);
var needle = lower(name);
for (var i = 0; i < players.length; i++) {
if (lower(players[i].getName()) === needle) return players[i];
}
return null;
}
```