Made PlayerAnimation cancellable. Thanks desmin88!

Dieser Commit ist enthalten in:
EvilSeph 2011-07-28 10:53:55 -04:00
Ursprung 7d4ec8b183
Commit 817cd83f0b

Datei anzeigen

@ -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();