Call PlayerLaunchProjectileEvent for trident (#8027)

This commit is contained in:
Lulu13022002
2022-11-03 19:43:50 +01:00
parent 857ece0812
commit 4400eb6600
2 changed files with 38 additions and 1 deletions

View File

@@ -21,7 +21,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * Called when a player shoots a projectile
+ * Called when a player shoots a projectile.
+ * <p>
+ * Notably this event is not called for arrows as the player does not launch them, rather shoots them with the help
+ * of a bow or crossbow. A plugin may listen to {@link org.bukkit.event.entity.EntityShootBowEvent} for these actions
+ * instead.
+ */
+public class PlayerLaunchProjectileEvent extends PlayerEvent implements Cancellable {
+ private static final HandlerList handlers = new HandlerList();