geforkt von Mirrors/Paper
Add PlayerArmSwingEvent
Dieser Commit ist enthalten in:
Ursprung
39716421ea
Commit
485db97ad6
@ -1605,7 +1605,7 @@
|
||||
+ } // Paper end - Call interact event
|
||||
+
|
||||
+ // Arm swing animation
|
||||
+ PlayerAnimationEvent event = new PlayerAnimationEvent(this.getCraftPlayer(), (packet.getHand() == InteractionHand.MAIN_HAND) ? PlayerAnimationType.ARM_SWING : PlayerAnimationType.OFF_ARM_SWING);
|
||||
+ io.papermc.paper.event.player.PlayerArmSwingEvent event = new io.papermc.paper.event.player.PlayerArmSwingEvent(this.getCraftPlayer(), org.bukkit.craftbukkit.CraftEquipmentSlot.getHand(packet.getHand())); // Paper - Add PlayerArmSwingEvent
|
||||
+ this.cserver.getPluginManager().callEvent(event);
|
||||
+
|
||||
+ if (event.isCancelled()) return;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren