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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to private server purchasing/expiration #666

Merged
merged 8 commits into from Aug 4, 2020

Conversation

bls1999
Copy link
Collaborator

@bls1999 bls1999 commented Aug 4, 2020

This pull delivers some

MUCH NEEDED

stability fixes for private server purchasing, extending, and expiration procedures. This should fix most of the problems users were having with these features. Extended comments regarding all changes found on each commit.

(this one's for you, Alpha 馃槃)

 - Expire time now on popup
 - Starts a new server
 - Updates expire time on an existing server (in memory on socket)
 - Better error handling for status code 0
 - Add global is_ps variable
 - Change uptime to timestamp after server init (in log)
 - Debug command optimizations
 - Always send the command to extend the server life, not just in status code 2 (just in case the code failed somewhere and the server is actually active)
 - Only update socket-side if the new time is greater than the current expiration time
 - Automatically shut down and deactivate a server when the expiration time is hit
 - Deactivating a server changes the status to "down" instead of "offline", which seems to have been the root of the problem of private servers not reactivating properly when present in the db but previously expired and deactivated
@bls1999 bls1999 merged commit 7616ccc into jacob-grahn:master Aug 4, 2020
@bls1999 bls1999 deleted the fix-private-servers branch August 4, 2020 05:48
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

1 participant