diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 10:55:33 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 10:55:33 +0000 |
commit | 96b3a075aff4cd110c4b6dbfc94ae21814adae63 (patch) | |
tree | 02179b3acc694a371f2cd9b52d085be9177a408f /src/main/java/org | |
parent | bf123c8b02c169683c64da6965d3ee2d9eeb8d16 (diff) | |
download | bukkit-96b3a075aff4cd110c4b6dbfc94ae21814adae63.tar bukkit-96b3a075aff4cd110c4b6dbfc94ae21814adae63.tar.gz bukkit-96b3a075aff4cd110c4b6dbfc94ae21814adae63.tar.lz bukkit-96b3a075aff4cd110c4b6dbfc94ae21814adae63.tar.xz bukkit-96b3a075aff4cd110c4b6dbfc94ae21814adae63.zip |
Added Player set/getAllowFlight methods. Thanks to Qala for the PR.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 7947b771..8132cf66 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -471,4 +471,19 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi * @return Bed Spawn Location if bed exists, otherwise null. */ public Location getBedSpawnLocation(); + + /** + * Determines if the Player is allowed to fly via jump key double-tap like in creative mode. + * + * @return True if the player is allowed to fly. + */ + public boolean getAllowFlight(); + + /** + * Sets if the Player is allowed to fly via jump key double-tap like in creative mode. + * + * @param flight If flight should be allowed. + */ + public void setAllowFlight(boolean flight); + } |