[SPIGOT-5174] Breaking a chorus plant with an arrow needs to trigger an event Created: 16/Jul/19 Updated: 17/Jul/19 Resolved: 16/Jul/19 |
|
Status: | Closed |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Craig Parton | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | 1.14, event |
Version: | git-Spigot-9a643a6-2349feb (MC: 1.14.3) (Implementing API version 1.14.3-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
The ability to break chorus plants with arrows is a new feature of 1.14, and it doesn't trigger any kind of event that I can find. I checked BlockBreakEvent, BlockExplodeEvent, BlockFadeEvent, BlockDamageEvent, and EntityChangeBlockEvent. The suppose the most logical event for it to trigger is EntityChangeBlockEvent, since you have an Entity (arrow) changing a block (chorus plant). I develop a block protection plugin, and without this event I can't stop players from destroying chorus plant blocks with bows on a protected plot. Thanks! |
Comments |
Comment by Craig Parton [ 17/Jul/19 ] |
Sorry for the duplicate post. I searched first but didn't find anything.. thanks for pointing me in the right direction! |
Comment by Black Hole [ 16/Jul/19 ] |
Duplicate of |