Archiviert
13
0

Implemented allowFlight methods. Thanks to Qala for the PR.

Dieser Commit ist enthalten in:
Nathan Adams 2012-01-15 10:55:05 +00:00
Ursprung 6d49b11338
Commit a753ee587d

Datei anzeigen

@ -538,6 +538,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
getHandle().getFoodData().foodLevel = value;
}
public boolean getAllowFlight() {
return getHandle().itemInWorldManager.player.abilities.canFly;
}
public void setAllowFlight(boolean flight) {
getHandle().itemInWorldManager.player.abilities.canFly = flight;
}
public Location getBedSpawnLocation() {
World world = getServer().getWorld(getHandle().spawnWorld);
if ((world != null) && (getHandle().getBed() != null)) {