diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-22 22:02:45 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-22 22:03:47 +0000 |
commit | 4a3a177dddf24810831902783b44bf1c1d0d6197 (patch) | |
tree | b66525bdbb0e78c246c8c6d9c433570bf1fcca1c /src | |
parent | 2854528ba5626010d1d5a78cdf45fb4fa5dcd4bc (diff) | |
download | bukkit-4a3a177dddf24810831902783b44bf1c1d0d6197.tar bukkit-4a3a177dddf24810831902783b44bf1c1d0d6197.tar.gz bukkit-4a3a177dddf24810831902783b44bf1c1d0d6197.tar.lz bukkit-4a3a177dddf24810831902783b44bf1c1d0d6197.tar.xz bukkit-4a3a177dddf24810831902783b44bf1c1d0d6197.zip |
Added player.isFlying|setFlying to check if a player is flying, or make them fly/not. This implements BUKKIT-1281.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 0d0e7f4d..b06edc47 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -501,4 +501,17 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline */ public boolean canSee(Player player); + /** + * Checks to see if this player is currently flying or not. + * + * @return True if the player is flying, else false. + */ + public boolean isFlying(); + + /** + * Makes this player start or stop flying. + * + * @param value True to fly. + */ + public void setFlying(boolean value); } |