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

send-on-login to send people to the server via the domain name that they used to join #97

Open
Serpentiel opened this issue Jun 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Serpentiel
Copy link

currently, send-on-login only has 3 modes:

  • TO_FIRST
  • TO_EMPTIEST_SERVER
  • RANDOM

I suggest adding a 4th mode, that is VIA_DOMAIN_NAME to send players to the server depending on which domain name they used to connect to the Velocity proxy, e.g.:

  • Player A connects to the Velocity proxy via the following domain name: survival-1.mc.abc.xyz and gets sent to the auth-1 server for authorization. Upon successful authorization, they will be sent to the survival-1 server as defined by forced-hosts in Velocity config or AuthMeVelocity's separate config file.

  • Player B connects to the Velocity proxy via the following domain name: creative-1.mc.abc.xyz and gets sent to the auth-1 server for authorization. Upon successful authorization, they will be sent to the creative-1 server as defined by forced-hosts in Velocity config or AuthMeVelocity's separate config file.

  • Player C connects to the Velocity proxy via the following domain name: lobby.mc.abc.xyz and gets sent to the auth-1 server for authorization. Upon successful authorization, they will be sent to the lobby server as defined by forced-hosts in Velocity config or AuthMeVelocity's separate config file.

  • Player D connects directly to the Velocity proxy by the IP address and gets sent to the auth-1 server for authorization. Upon successful authorization, they will be sent to the default server, e.g. lobby, or the last server that they played on previously (this could be done via LuckPerm's meta fields, also perhaps adding a command like /remember would be great to let people toggle this behavior).

@4drian3d 4drian3d added the enhancement New feature or request label Jun 3, 2023
@Serpentiel Serpentiel changed the title send-on-login to send people to the server by the domain name that the used to join send-on-login to send people to the server via the domain name that they used to join Jun 3, 2023
@4drian3d
Copy link
Owner

4drian3d commented Aug 1, 2023

This could be implemented by means of an external addon, as implemented in issue #112. I will see if I make one soon

@guilhermewerner
Copy link

This functionality would be really good, I have a survival server and I'm adding another one of minegames, I would like to be able to direct the player to one of them according to the hostname.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants