Files

21 lines
487 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.
# Darklord.js — getFlightCaps() (satır 3059)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function getFlightCaps(player)
{
var out = { allow: false, flying: false };
try
{
var mc = mcPlayerOf(player);
var caps = dbFieldAny(mc, ["capabilities", "field_71075_bZ"]);
out.allow = Boolean(caps.allowFlying);
out.flying = Boolean(caps.isFlying);
}
catch (e1) {}
return out;
}
```