This plugin logs the playtime of players and sends them to external MongoDB database.
- Download the plugin from releases page
- Put the plugin into the
plugins
folder of your server - Start the server
The configuration file is located at plugins/PlaytimeLogger/config.yml
.
# MongoDB connection string
MONGODB_CONNECTION_STRING: String
# MongoDB database name
MONGODB_DATABASE: String
# MongoDB collection name
MONGODB_COLLECTION: String
# Interval to save the playtime to the database (in minutes)
SAVE_INTERVAL: int
Command | Permission | Description |
---|---|---|
/save-playtime |
playtimelogger.save |
Saves playtimes to database, works the same as periodic task |
/reload-playtime |
playtimelogger.reload |
Reloads plugin config |
Permission | Description |
---|---|
playtimelogger.save |
Allows to use /save-playtime |
playtimelogger.reload |
Allows to use /reload-playtime |
playtimelogger.* |
Allows to use all plugin commands |