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 warning message when starting a non-global run #319

Merged
merged 2 commits into from Apr 23, 2022

Conversation

walliski
Copy link
Contributor

@walliski walliski commented Apr 11, 2022

In case the map is the wrong version, or the server is not updated the
user might not realize that the run will not be saved in the global api.
To avoid the confusion, we show them an error message.

To prevent spam of the message, we first check if the server is intended
to be global, by verifying that the GlobalApi plugin has a key set.
Further if the user already has a run going when resetting the timer,
they will not get the message again. If they stop the timer and start it
again, it will show the message again.

Implements: #316

In case the map is the wrong version, or the server is not updated the
user might not realize that the run will not be saved in the global api.
To avoid the confusion, we show them an error message.

To prevent spam of the message, we first check if the server is intended
to be global, by verifying that the GlobalApi plugin has a key set.
Further if the user already has a run going when resetting the timer,
they will not get the message again. If they stop the timer and start it
again, it will show the message again.
This allows server owners to disable the warnings for non-global maps.
This is useful in cases where you host a lot of non-global maps on your
server. The default value is to warn users about non-global times, as
most servers that have the GlobalAPI Key set mainly host global maps.
@zealain zealain merged commit 96021c9 into KZGlobalTeam:dev Apr 23, 2022
@walliski walliski deleted the warn-non-global branch April 24, 2022 11:50
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.

None yet

2 participants