PlaytimeStats

A Plugin that records Playtime of the Players.

152

PlaytimeStats

Playtime Stats

Playtime Stats is a Minecraft plugin that tracks and displays player playtime statistics, both globally and per project/server. So you can have multiple Minecraft Projekts and still have the Global and per Project Playtime.

It provides easy-to-use commands for players to view their own playtime, check the playtime of others, and see the top players on the server. All data is stored in a MongoDB database, making it easy to manage and analyze playtime across multiple servers or projects.

Commands

``` /playtime ```

Shows your own playtime (global and for the current project/server).

``` /playtime toplist ```

Displays the top 20 players with the most playtime for the current project/server.

``` /playtime <playername> ```

Shows the playtime of the specified player (global and for the current project/server).

How to Connect to MongoDB

Create a MongoDB cloud Account:

Make sure you have a MongoDB cloud Account and a existing Mongodb MongoDB Cloud

Configure the Plugin:

Open the config.yml file mongodb_uri: mongodb_uri: The connection string for your MongoDB server (e.g., mongodb+srv://<Username>:<db_password>@xx.xxxxxxx.mongodb.net/?retryWrites=true&w=majority&appName=Database).

database_name: The name of the database to use.

collection_name: The name of the collection where playtime data will be stored.

project_name: The name of your project/server (used for per-project statistics).

ADS