Add compat constructor to PlayerAnimationEvent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2022-06-11 13:22:25 +10:00
parent 8bbd39c170
commit 5148d2950b

View file

@ -13,6 +13,11 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
private final PlayerAnimationType animationType;
private boolean isCancelled = false;
@Deprecated
public PlayerAnimationEvent(@NotNull final Player player) {
this(player, PlayerAnimationType.ARM_SWING);
}
/**
* Construct a new PlayerAnimation event
*