Playtime Logger
This mod logs players' playtime on the server using Google Spreadsheets API. Useful for monitoring server's active player base.
介绍
Playtime Logger Mod
Purpose
If you ever encountered a problem with monitoring your server’s activity, you might be interested in this modification.
This mod uses Google Spreadsheets API to automatically log every player’s logins and logouts, calculates individual session timeframes and shows this information in an easy and comfort way.
Setup
- Download and install this mod on your dedicated server.
- For now, you can follow this tutorial
- Follow the link and create new Project
- Enable the API
- Create OAuth consent screen and setup External user type. After that, you can use this project in the testing environment.
- Don’t forget to add scope “./auth/spreadsheets”
- Download your generated OAuth client as a json file.
- Rename it to “credentials.json” and put this file to “/config/playtimelogger/” (if you have started your server, this directory should already exist)
- Restart your server. If everything works correctly, you will be prompted to follow the link in your server console. Follow the link and authorize with Google project that you created. Your credentials will be used by Playtime Logger to generate and update spreadsheet.
Usage
After successful initialization you can start tracking your players’ playtime activity. Go to the Google Spreadsheets, authorize with your Google account and search for “Playtime Logger” spreadsheet (the name might be different if you replaced it in the config file).
There you will see two sheets:
- First one, by default, is called “Total Playtime”. There you will see all unique players that visited your server starting from the moment you installed the mod.
There you will see players’ names, UUIDs (for servers in offline mode), playtime for specified period and last login date.
- The second sheet is called “Logs” by default. There you will see individual logins and logouts of every player. Those events are described by Epochs (in seconds), Dates (using =EPOCHTODATE formula), and session playtime in seconds.
License
This project is available under the MIT license. Feel free to learn from it and incorporate it in your own projects.
常见问题
Playtime Logger 支持哪些 Minecraft 版本?
Playtime Logger 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Playtime Logger 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
JustS-js 的其他作品
查看全部 →
Survival Debug Stick
这个模组让玩家可以在生存模式中合成并使用调试棒,还能轻松自定义它的功能和使用限制!
Possessive
Armor Poser 的客户端附属模组,可让你操控盔甲架。
World Days
通过 HUD 查看你在 Minecraft 世界中存活的天数!高度可自定义。
Hexxy Attributes
这款模组添加了一些玩家实体属性,可用于调整使用 Hex Casting 时的游戏体验。
评论
登录后评论和评分