PlaytimeStats
作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2
平台: paper
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
Set the following options:
mongodb_uri: The connection string for your MongoDB server (e.g., mongodb+srv://:@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).
请登录后举报
暂无评论,抢个沙发吧~