Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 07:10:10 +01:00
Made PlayerAnimation cancellable. Thanks desmin88!
Dieser Commit ist enthalten in:
Ursprung
7d4ec8b183
Commit
817cd83f0b
@ -785,6 +785,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
// Arm swing animation
|
// Arm swing animation
|
||||||
PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer());
|
PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer());
|
||||||
this.server.getPluginManager().callEvent(event);
|
this.server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
if (event.isCancelled()) return;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
this.player.w();
|
this.player.w();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren