-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
add player position and look packet #47
base: master
Are you sure you want to change the base?
Conversation
The final packet sent when connecting. Signed-off-by: Christian Stewart <[email protected]>
Thanks for your contribution! Could you explain why Gate needs to know about this packet and why it is useful for the proxy? |
It's the final packet in the join sequence. You can use this to create a "lightweight server" by sending the "set player position" packet just after the auth sequence. See this branch: https://github.com/paralin/minekube-gate/tree/paralin |
It looks great but maybe it makes the maintenance harder. Could this be a module that you can decide to use or not? |
I have not tested this and from what I understand you mean that if Gate would send this packet after auth then the player would have a shorter loading screen and see the world more quickly. Should Gate send this packet only once or every time the player joins/switches the backend server? I agree @xxnurioxx, this could be a feature that users can enable or disable in the config. |
I agree with him, this would be great for high cracked network servers like most brazillian servers, because we could make some agree of requirement, authorization, checking or whatever we could do in a light-weight server. |
It can be used to dismiss the loading screen, so possibly sending it when switching backend servers could be helpful, especially if you wanted to add a custom loading screen.
Correct, there doesnt' seem to be any validation on the client end. The main purpose of adding this packet is to make a 'lightweight server' where you have no backend server at all. This is of course useful to make custom loading state views, while determining which backend server to connect to. |
Deploying with Cloudflare Pages
|
The final packet sent when connecting:
see https://wiki.vg/Protocol#Player_Position_And_Look_.28clientbound.29