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

feat: Add server registered/unregistered events #1386

Merged
merged 7 commits into from
Jul 24, 2024

Conversation

Twarug
Copy link
Contributor

@Twarug Twarug commented Jul 19, 2024

These events are useful for handling dynamically registered servers by other plugins or reloads of velocity configuration.

This PR replaces #1050, due to owners inactivity.

@Timongcraft
Copy link
Contributor

I think the new API should be annotated with @Beta.

Copy link
Contributor

@4drian3d 4drian3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these events would be perfect to be created as records, otherwise, lgtm

@Twarug Twarug requested a review from 4drian3d July 24, 2024 21:55
@4drian3d 4drian3d added the type: feature New feature or request label Jul 24, 2024
@4drian3d 4drian3d added this to the Velocity 3.3.0 milestone Jul 24, 2024
Co-authored-by: powercas_gamer <[email protected]>
Co-authored-by: powercas_gamer <[email protected]>
@4drian3d 4drian3d merged commit 09f687e into PaperMC:dev/3.0.0 Jul 24, 2024
1 check passed
pull bot pushed a commit to WiIIiam278/Velocity that referenced this pull request Jul 25, 2024
* feat: Add server registered/unregistered events

* Annotate new API with `@Beta`

* Migrate from classes to records

* Add null checks

* Fix code style indent

* Add links in documentation

* Fix docs indent

---------

Co-authored-by: powercas_gamer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants