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

Information packet #382

Merged
merged 6 commits into from
Nov 1, 2024
Merged

Information packet #382

merged 6 commits into from
Nov 1, 2024

Conversation

WiserTixx
Copy link
Collaborator

This PR adds an "I" packet which returns the server information. This can be used by external programs and the launcher to get information about a server without having to connect it to. It can be toggled in the config and in lua.

Copy link
Contributor

@lionkor lionkor left a comment

Choose a reason for hiding this comment

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

very nice, just formatting :)

@lionkor lionkor merged commit 9ad4f61 into minor Nov 1, 2024
9 checks passed
@lionkor lionkor deleted the information-packet branch November 1, 2024 11:27
WiserTixx added a commit to BeamMP/BeamMP-Launcher that referenced this pull request Jan 18, 2025
Adds an `I` packet to the core handler, which allows the mod to use the
newly added [information packet
](BeamMP/BeamMP-Server#382) in the server.
Usage:
Mod sends `I0.0.0.0:0000` and the launcher will send either
`I0.0.0.0:0000;` back if something went wrong, or `I0.0.0.0:0000;{Server
information JSON}` if it succeeded.

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
@WiserTixx WiserTixx linked an issue Mar 7, 2025 that may be closed by this pull request
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.

[Feature Request] New packet type for Session/server information
2 participants