-
-
Notifications
You must be signed in to change notification settings - Fork 992
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 playtime command #4562
Add playtime command #4562
Conversation
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
- Made it actually compile (oops sorry) - Handle permissions correctly - Put new messages in the right place in message.properties
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandplaytime.java
Outdated
Show resolved
Hide resolved
@MisterMelDev, would it be possible to add offline playtime support? This would be insanely useful. |
The way I implemented this, it currently wouldn't be possible. I'm using the built-in Bukkit statistics system, which also contains a statistic for playtime, but this can only be retrieved when the player is online. The plugin would have to store the playtime in the player data or something. I'm a bit busy currently, but maybe someone else could make a PR for that? |
Greetings! Just in case if still interested in offline data, there are a few implementation like the following wonderful one for a reference: |
Information
This PR closes #3827.
Details
Proposed feature:
Allow players to view their own or another player's playtime.
Environments tested:
OS: Windows 10
Java version:
java version "16.0.1" 2021-04-20
Demonstration: