-
-
Notifications
You must be signed in to change notification settings - Fork 792
(feat): add /setplaytime #1672
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
base: dev
Are you sure you want to change the base?
(feat): add /setplaytime #1672
Conversation
I can understand if this is seemed useless for most server's or not what ESX had intended playtime to be for, so if this PR gets denied thats understandable. Just thought I'd try to contribute something that I use quite often. |
it would be better to support s, m, h, and d indicators (for seconds, minutes, hours, and days) instead of forcing everything to hours |
I can edit the pr later today for you guy's. |
@rk3gaming any news? |
My fault, have been busy irl. I'll work on it tonight |
Sorry for the wait. Here you go 9zku@b8cdca8 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check @feelfreetofee's review
out traveling. |
Description
This pull request adds a /setplaytime command that allows admins to set a players playtime that's stored.
Motivation
Some of the server's I develop, they have playtime scripts which control what the players can do, Example; You can't use weapons without 24 hours of playtime. And there is times where they need to set a players playtime for whatever reasons.
Implementation Details
This Implements /setplaytime [playerId] [hours] for admins to manually set a player's total playtime. The new value is saved immediately.
Usage Example
PR Checklist