Events Migration (Player Events)#8716
Conversation
This comment has been minimized.
This comment has been minimized.
|
testing.txt |
|
also can someone add the 'don't merge' tag |
|
As previously discussed, I think there's no reason for 80% of these to have their own files. It creates dozens of files that do nothing but |
|
should be ready for review now :) |
… will do in a bit)
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
…nts/PlayerEvents.java Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
…nts/PlayerEvents.java Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
|
I changed pattern of chat to be |
…nts/PlayerEvents.java Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
…nts/events/EvtPlayerSpectate.java Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
…nts/events/EvtPlayerMoveOn.java Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>

Problem
This is part 1 of probably 6-8 more prs needed to migrate all of simpleevents & njol/skript/events into the skriptlang folder in their related module while (hopefully) preventing any breaking changes.
This PR is targetted at player events in SimpleEvents (Events in Bukkit/Paper that start with
PlayerI did not include every actual player event in SimpleEvents as thats too much for 1 pr)Also migrates some of the events in njol/skript/events before realizing doing all of them in that folder would be too much ontop of this already big PR.
Why is this PR necessary? What problems exist that needed solving?Everything worked fine so technically no problems but this needs to be done as SimpleEvents is pretty awful and very hard to read & manage & njol/skript/events is just simply running on deprecated registry
Events ->
Solution
Migrates every single player event from SimpleEvents into their own folder in the PlayerModule (some problems here i'll explain in a bit)
Chips away at the amount of lines in SimpleEvents & BukkitEventValues (progress to destroying the files!)
Testing Completed
Manual tested every single event with the event-values everything appears to work fine (besides from my bare bones testing some events) overall more testing will need to be completed before this is merged (ideally targetting skript 2.17 not 2.16)
Also ran JUnit & QuickTest both pass
Supporting Information
After finishing & even before it was pretty clear that theres an issue: Theres so many events that having em all in the PlayerModule in seperate files is too messy and too much
so (me and sovde) have a few ideas:
1# Put all events into files with categories like simpleevents but eg like PlayerBlockEvents or PlayerMiscEvents which would be on average like 200-300 lines per file containing events relating to the file name & any not fitting going in PlayerMiscEvents
2# Keep as is right now (mehhh decently messy)
3# Replicate the god awful simpleevents but smaller & do a PlayerEvents with all events in 1 file (please no)
4# Possibly another option?
Completes: none
Related: none
AI assistance: Minimal (Claude used to resolve issues with some events) otherwise all done by me