13
0
geforkt von Mirrors/Paper

Added PlayerToggleSneakEvent.isSneaking().

By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-06-18 14:34:59 -07:00
Ursprung c3373081e2
Commit 2a62ac59bf

Datei anzeigen

@ -8,10 +8,21 @@ import org.bukkit.event.Cancellable;
* @author azi
*/
public class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable {
private boolean isSneaking;
private boolean cancel = false;
public PlayerToggleSneakEvent(final Player player) {
public PlayerToggleSneakEvent(final Player player, boolean isSneaking) {
super(Type.PLAYER_TOGGLE_SNEAK, player);
this.isSneaking = isSneaking;
}
/**
* Returns whether the player is now sneaking.
*
* @return sneaking state
*/
public boolean isSneaking() {
return isSneaking;
}
/**