[SPIGOT-7396] New SignEditEvent Created: 15/Jun/23 Updated: 25/Dec/24 Resolved: 04/Aug/23 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Zrips | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 5 |
Labels: | None |
Version: | 1.20 |
Guidelines Read: | Yes |
Description |
As of vanilla support for sign editing got added this starting to cause some issues and complications when it comes to limiting who can edit signs and where. At this moment there is no event being fired when UI opens, at best we can utilize PlayerInteractEvent, but this only addresses interaction with sign block which might or might not result in sign UI being opened. For example using dies or making sign glow will not open UI at first interaction, but will do it on second one, so canceling this event isn't really an option. Solution would be to have new event which gets fired before opening sign UI which could be canceled if needed. Tho this should only be fired when sign is being edited or have extra indication if this is sign placement UI or edit UI to simplify determination what should happen with it. |
Comments |
Comment by Y2K_ [ 02/Aug/23 ] |
Comment by Floris Fiedeldij Dop [ 04/Jul/23 ] |
Yeah, it would be nice if someone who knows how to code could make a pull request to Spigot to suggest a fix like that. Or if Bukkit/Spigot could have an alike event. It would honestly resolve nearly all sign issues and helps plugins not having to tell players 'you are using spigot, this isn't possible currently, please try paper instead'. |
Comment by DaMarine [ 30/Jun/23 ] |
Equivalent event was added for Paper here: https://github.com/PaperMC/Paper/pull/9300 Equivalent issue raised for Paper: https://github.com/PaperMC/Paper/issues/9293
|