[SPIGOT-834] Cancelling player teleport events for ender pearls does not prevent ender mites from spawning. Created: 25/Apr/15  Updated: 21/May/15  Resolved: 21/May/15

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ryan Hamshire Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Environment:

This server is running CraftBukkit version git-Spigot-2f787bd-a
5b7881 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)



 Description   

I'm cancelling player ender pearl teleportations in some areas of the world and giving the ender pearl back. Players have figured out that rapid-firing ender pearls, then, can create an army of ender mites. Please update so that ender mites only spawn when the player successfully teleports. Thanks!



 Comments   
Comment by Ryan Hamshire [ 14/May/15 ]

@MattHarris thanks for the suggestion. It doesn't fit my case, because I need to know where the player is going before I decide whether or not to cancel the teleport. At the time the player right-clicks, I don't yet know what the destination will be.

Comment by MattBDev [ 27/Apr/15 ]

I just submitted a PR for this to be fixed.

Comment by Matt Harris [ 25/Apr/15 ]

Use PlayerInteractEvent to prevent the enderpearl from being used at all. By the time the player teleports, the ender pearl has already been thrown so it makes sense for the endermite to spawn.

Generated at Sat Dec 13 15:19:59 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.