项目简介

fStats 是一个第三方数据收集库。其核心理念是帮助开发者通过图表了解基于实际社区的数据情况。
(回到顶部)
使用方法
对于用户
该模组包含一个配置,允许关闭来自服务器/客户端的数据收集并隐藏位置信息。
../config/fstats-api/config.json
{
"enabled": true, // 启用/禁用从我们的服务器收集数据
"hideLocation": false // 模组不会收集你的 IP,仅收集国家名称
}
对于开发者
你需要做的第一件事是 注册 并创建一个项目以获取 projectId。
之后,你就可以将库作为依赖项添加到项目中:
Java - build.gradle
repositories {
maven {
url "https://api.modrinth.com/maven"
}
}
dependencies {
// 选项 1:将 fStats API 包含在项目中,使其在你的 jar 包中可用(它只有 ~9KB!)
include(modImplementation("maven.modrinth:fstats:<version>")
// 选项 2:依赖 fStats API,但要求用户手动安装
modImplementation "maven.modrinth:fstats:<version>"
}
Kotlin - build.gradle.kts
repositories {
maven("https://api.modrinth.com/maven")
}
dependencies {
// 选项 1:将 fStats API 包含在项目中,使其在你的 jar 包中可用(它只有 ~9KB!)
include(modImplementation("maven.modrinth", "fstats", "<version>"))
// 选项 2:依赖 fStats API,但要求用户手动安装
modImplementation("maven.modrinth", "fstats", "<version>")
}
fabric.mod.json
"suggests": {
"fstats-api": "*"
}
设置项目
fabric.mod.json
"custom": {
"fstats": <projectId>
}
完成。现在,当任何服务器使用你的模组时,如果他们没有禁用 fStats,你就能在 网站 上获取相关数据。
此外,建议在项目描述中添加徽章,以通知用户你正在收集信息。
调整徽章到任意你想要的大小

(回到顶部)
路线图
查看 开放的问题 以获取所有提议的功能(和已知问题)的完整列表。
(回到顶部)
贡献指南
贡献是让开源社区成为如此美好的学习、激发和创造之地的重要因素。你对我们做出的任何贡献都将受到高度赞赏。
如果你有改进建议,请 fork 仓库并创建拉取请求。你也可以直接打开带有“enhancement”标签的问题。 别忘了给项目点个星!再次感谢!
- Fork 该项目
2. 创建你的特性分支 (
git checkout -b feature/AmazingFeature) 3. 提交你的更改 (git commit -m 'Add some AmazingFeature') 4. 推送到分支 (git push origin feature/AmazingFeature) 5. 打开拉取请求
(回到顶部)
许可证
根据 MIT 许可证分发。有关更多信息,请参阅 LICENSE.txt。
(回到顶部)
Table of Contents
About The Project

fStats is a 3rd-party metric collection library. The Main idea is help developers to recognize their actual community based on charts
Usage
For user
The mod has a config that allows to turn off a metric collection from the server/client and hiding location
../config/fstats-api/config.json
{
"enabled": true, // Enable/Disable collection from our server
"hideLocation": false // Mod does not collect your IP, only the country name
}
For developers
The first thing that you need to do is register and create a project to get projectId
After that, you are ready to add a library as/to dependency
Java - build.gradle
repositories {
maven {
url "https://api.modrinth.com/maven"
}
}
dependencies {
// Option 1: Include fStats API to project for it to be available within your own jar (IT'S ONLY ~9KB!)
include(modImplementation("maven.modrinth:fstats:<version>")
// Option 2: Depend on fStats API, but require that users install it manually
modImplementation "maven.modrinth:fstats:<version>"
}
Kotlin - build.gradle.kts
repositories {
maven("https://api.modrinth.com/maven")
}
dependencies {
// Option 1: Include fStats API to project for it available within your own jar IT'S ONLY ~9KB!
include(modImplementation("maven.modrinth", "fstats", "<version>"))
// Option 2: Depend on fStats API, but require that users install it manually
modImplementation("maven.modrinth", "fstats", "<version>")
}
fabric.mod.json
"suggests": {
"fstats-api": "*"
}
Setup project
fabric.mod.json
"custom": {
"fstats": <projectId>
}
Done, now when any server uses your mod, and if they don't disable fStats, you are going to get data about that on website
Also, recommend adding the badge to your project description to notify users that you collect information.
Resize badge to any size that you want

Roadmap
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
2. Create your Feature Branch (
git checkout -b feature/AmazingFeature) 3. Commit your Changes (git commit -m 'Add some AmazingFeature') 4. Push to the Branch (git push origin feature/AmazingFeature) 5. Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
下载 fStats
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 fStats
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 fStats
下载 fStats
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 fStats
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 fStats
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 fStats
下载 fStats
下载 fStats
下载 fStats
- 更新至 26.1
- 从 Yarn 切换至 Mojmaps
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧