Added player.isFlying|setFlying to check if a player is flying, or make them fly/not. This implements BUKKIT-1281.
This commit is contained in:
parent
2854528ba5
commit
4a3a177ddd
@ -501,4 +501,17 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
|||||||
*/
|
*/
|
||||||
public boolean canSee(Player player);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user