mirror of
https://gitlab.com/hamburghammer/playtime.git
synced 2024-12-22 10:07:41 +01:00
It's a plugin for a Spigot Minecraft server to log the time players spend on the server and returns it to them.
fb9cb5dd85
Features: * Implementation of `playtimeof` command hamburghammer/playtime#4 Bugs: * Thread safety hamburghammer/playtime#17 |
||
---|---|---|
gradle/wrapper | ||
src | ||
.gitattributes | ||
.gitignore | ||
.gitlab-ci.yml | ||
build.gradle.kts | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
README.md | ||
settings.gradle.kts | ||
start_minecraft.sh |
PlayTime
It's a plugin for a Spigot Minecraft server to log the time players spend on the server and returns it to them.
Features
- Simple usage
- No external DB needed
- No config
- Plug and Play
- Scheduled saving to prevent data loses by a crash
- Written in Kotlin
Commands
uptime
shows the current up time of the server. It's inspired by the linux tool returning the systems up time in DD:HH:MM format.
playtime
shows the total play time on the server (Format DD:HH:MM)
Development
The plugin gets build with gradle. It is important to run the shadowJar task to include all dependencies. It's entirely written in Kotlin and for testing it uses Mockk and Junit5.
This plugin uses the linter from Pinterest for Kotlin
If you want to contribute make sure to include the test for your code and add Kotlin doc.
Feel free to create a merge request!