It's a plugin for a Spigot Minecraft server to log the time players spend on the server and returns it to them.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Augusto Dwenger dfcd3cd35a Merge branch '7-feature-ranking-command' into 'dev' 2 years ago
gradle/wrapper fix gitlab ci not finding the gradle wrapper because it was excludet by 2 years ago
src Resolve "[FEATURE] "ranking" command" 2 years ago
.gitattributes Initial commit 2 years ago
.gitignore Player time 2 years ago
.gitlab-ci.yml implement coverage report with jacoco 2 years ago
LICENSE Add LICENSE 2 years ago
README.md Merge branch '7-feature-ranking-command' into 'dev' 2 years ago
build.gradle.kts implement coverage report with jacoco 2 years ago
gradle.properties Initial commit 2 years ago
gradlew Initial commit 2 years ago
gradlew.bat Initial commit 2 years ago
settings.gradle.kts Initial commit 2 years ago
start_minecraft.sh release candidate v0.2.0 2 years ago

README.md

PlayTime

pipeline status coverage report

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)

playtimeof <player> shows the total play time of the player (Format DD:HH:MM)

toptime shows the top 5 player with the highest total playtime

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!