[SPIGOT-4946] Add VillagerEmploymentChangeEvent Created: 17/May/19 Updated: 27/May/19 Resolved: 27/May/19 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | i509vcb | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | 1.14, Feature, event, villager |
Version: | 1.14.1 |
Guidelines Read: | Yes |
Description |
Because of the 1.14 villager changes, villagers can change their employment based on their work block being destroyed. I think an event to detect this change (and cancel it if wanted) could benifit developers and servers who want to make plugins to change how villagers change employment or disallow villagers from changing professions.
Though a new event could make sense, this could be integrated into EntityTransformEvent but having the ability to track what a village's previous profession was wouldn't work too well in Entity Transform because it would only effect villagers. Edit (17/05/19 9:15pm CT): I have decided to implement this feature into code base and am currently awaiting CLA approval. I have figured out what code is triggered when a villager's profession changes. I am currently writing the event and implementing it. |
Comments |
Comment by i509vcb [ 18/May/19 ] |
I have taken it upon myself to add this event into bukkit code. I am still waiting on CLA approval but I have determined which code is ran when a Villager's profession changes and have started writing the implementation for an event. Should be a day or two till I can push the new event |
Comment by Black Hole [ 17/May/19 ] |
Related to |