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 basic API for server links #1353

Merged
merged 9 commits into from
Jun 18, 2024

Conversation

WiIIiam278
Copy link
Contributor

Adds a (very simple) API for setting a list of server links to display to the client with either built-in or component labels. Strings for URLs as is the case in the resource pack API.

I was thinking about doing something more complex with a builder or something, but I'm not sure it's really needed in this case?

@WiIIiam278
Copy link
Contributor Author

WiIIiam278 commented Jun 13, 2024

@alexdev03 The link is checked in the constructor above the static methods - hence is not needed twice.

@4drian3d 4drian3d merged commit 9d25d30 into PaperMC:dev/3.0.0 Jun 18, 2024
1 check passed
@WiIIiam278 WiIIiam278 deleted the feat/server-links branch June 18, 2024 14:43
qyl27 pushed a commit to MeowCraftMC/Velocity that referenced this pull request Jul 6, 2024
* feat: add basic server links API

* refactor: more precondition checking on links

* refactor: remove whitespace

* refactor: adjust method order, JDs in ServerLink

* refactor: remove "throws" from constructors

* refactor: add @NotNull annotations

* refactor: requested changes

* refactor: just use `List#copyOf`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants