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

Add 'wasReconnecting' parameter to the onPlayerConnect event #2812

Open
1 task done
CrosRoad95 opened this issue Nov 10, 2022 · 1 comment
Open
1 task done

Add 'wasReconnecting' parameter to the onPlayerConnect event #2812

CrosRoad95 opened this issue Nov 10, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@CrosRoad95
Copy link
Contributor

Is your feature request related to a problem? Please describe.

You can't know if specific player is connecting for first time or just reconnecting

Describe the solution you'd like

add "wasReconnecting" parameter for "onPlayerConnect" event, it will be set to true only when player join to the server by "reconnect" command.
That way you can know that player is for example already logged in so server operators can improve user experience by skipping login for that users.

Describe alternatives you've considered

/

Additional context

/

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@CrosRoad95 CrosRoad95 added the enhancement New feature or request label Nov 10, 2022
@CrosRoad95 CrosRoad95 changed the title Add to the evvent 'onPlayerConnect' a "wasReconnecting" parameter Add to the event 'onPlayerConnect' a "wasReconnecting" parameter Nov 10, 2022
@Fernando-A-Rocha
Copy link
Contributor

Just remembered that I made #2116 a while ago (related)

@patrikjuvonen patrikjuvonen changed the title Add to the event 'onPlayerConnect' a "wasReconnecting" parameter Add 'wasReconnecting' parameter to the onPlayerConnect event Apr 10, 2023
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

2 participants