Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: update BungeeCord to v1.20-R0.3-SNAPSHOT and fix StaffJoinEvent #126

Merged
merged 1 commit into from
May 20, 2024

Conversation

joshuasing
Copy link
Member

Summary
Update BungeeCord to 1.20-R0.3-SNAPSHOT and fix StaffJoinEvent.

BungeeCord broke their API by changing the PostLoginEvent to an AsyncEvent and adding a new field (which breaks the lombok @Data constructor, thus breaking StaffJoinEvent): SpigotMC/BungeeCord@17e23d5

Changes

  • Update bungeecord-api to 1.20-R0.3-SNAPSHOT
  • Change StaffJoinEvent to no longer extend PostLoginEvent and add getPlayer() method to StaffJoinEvent (instead of using the method from PostLoginEvent).

Checklist

Breaking change
StaffJoinEvent no longer extends the BungeeCord PostLoginEvent class.
This change should not break any plugins using the API unless they are attempting to use the StaffJoinEvent as a PostLoginEvent (e.g. by casting), which is unlikely and is not recommended.

Due to this breakage originally being caused by BungeeCord, and the unlikeliness of an API user requiring StaffJoinEvent to extend PostLoginEvent, this change will be released in v5.2.2 and no major version bump will occur.
It is highly unlikely that this will actually break anything using the API.

BungeeCord broke their API by changing the PostLoginEvent to an
AsyncEvent and adding a new field (which breaks the lombok `@Data`
constructor):
SpigotMC/BungeeCord@17e23d5

BREAKING CHANGE: StaffJoinEvent no longer extends the BungeeCord
 PostLoginEvent. This change should not break any plugins using the API
 unless they are attempting to use the StaffJoinEvent as a
 PostLoginEvent (e.g. by casting), however this is not recommended.
@joshuasing joshuasing added type: dependencies This involves updating, adding or removing a dependency type: bug: fix A bug fix labels May 19, 2024
@joshuasing joshuasing requested a review from LooFifteen as a code owner May 19, 2024 19:02
@joshuasing joshuasing mentioned this pull request May 20, 2024
3 tasks
@joshuasing joshuasing merged commit 7bd10ba into main May 20, 2024
2 checks passed
@joshuasing joshuasing deleted the fix/update-bungee branch May 20, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug: fix A bug fix type: dependencies This involves updating, adding or removing a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants