Made PlayerAnimation cancellable. Thanks desmin88!
This commit is contained in:
@@ -785,6 +785,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
// Arm swing animation
|
||||
PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer());
|
||||
this.server.getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) return;
|
||||
// CraftBukkit end
|
||||
|
||||
this.player.w();
|
||||
|
||||
Reference in New Issue
Block a user