[SPIGOT-6562] Add event fired if a sculk sensor is triggered thru a player Created: 15/Jun/21 Updated: 16/Jun/21 Resolved: 16/Jun/21 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Mathew Donegan | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Not relevant. |
||
| Version: | This server is running CraftBukkit version 3143-Spigot-66f9d3c-f66c437 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) |
| Guidelines Read: | Yes |
| Description |
|
I would like to see an event added fired if a player triggers the vibration of a sculk sensor. Currently this item is only available thru the /give command but such an event already comes in handy if you want to cancel player's triggering it.
|
| Comments |
| Comment by md_5 [ 15/Jun/21 ] |
|
Created PRs |
| Comment by Mathew Donegan [ 15/Jun/21 ] |
|
I am aware, but like the javadoc note says itself, Bukkit-specific events should be used where possible, hence I requested to add them so I can comply with this note. It would be a handy addition nevertheless. |
| Comment by Marvin Rieple [ 15/Jun/21 ] |
|
There is the GenericGameEvent which "Represents a generic Mojang game event. Specific Bukkit events should be used where possible, this event is mainly used internally by Sculk sensors." |