适用于 Fabric 的方块与箱子/容器库存追踪工具,可配置为使用 MySQL 或 SQLite。
设置
DeltaLogger 支持两种类型的数据库:MySQL 和 SQLite
将模组 jar 文件放入服务器目录的 mods 文件夹中,并启动一次 Fabric 服务器以生成 config/deltalogger.properties 文件。或者在服务器目录的 config 文件夹中创建一个名为 deltalogger.properties 的文件。将以下内容作为文件内容:
# DeltaLogger 配置
# 是否要使用 SQLite 数据库。使用 MySQL 请设为 false。
use_sqlite=true
##! 仅以下部分适用于 MYSQL。如果您使用的是 SQLite,可以安全地忽略这些。 !##
# 要使用的 MySQL 数据库名称。如果您还没有,请先通过 MySQL 客户端执行
# "CREATE DATABASE yourdbname"。
database=
# MySQL 端口
port=
# MySQL 主机/URL
host=
# MySQL 用户名
username=
# MySQL 密码
password=
# MySQL SSL 配置。您可以将其保留为 false,但数据库连接将不会加密。如果您通过开放互联网使用 MySQL,
# 则应强烈考虑正确启用 SSL
useSSL=false
requireSSL=false
默认情况下,SQLite 已启用。这意味着您的日志将保存到位于 world/deltalogger.sqlite 的数据库中。如果要使用 MySQL,请填写相关属性以访问您的数据库,并将 use_sqlite 设置为 false。
此模组还需要 fabric api 模组,您可以在这里找到它。
游戏内命令
/dl resetpass 获取 Web 界面的临时密码。
/dl inspect 击打一个方块或容器以查看最近对目标的操作。
/dl inspect <pos> 显示所提供方块位置的数据库记录。
/dl search <args> 根据指定的参数构建数据库查询
/dl sql (block|transaction) <query> 使用指定的 SQL 在数据库上运行查询
支持
可以在这里找到的 Discord 上获得支持。
许可证
根据 AGPL 许可,并附加链接权限。请参阅许可证文件。
问题
如果发现错误,请在问题页面上打开一个问题。如果您有非错误的支持问题,请在 Discord 上询问。
Block and chest/container inventory tracking tool for fabric that can be configured to use MySQL or SQLite.
Setup
DeltaLogger supports two types of database: MySQL and SQLite
Place the mod jar in the mods folder of your server directory and launch your fabric server once to make it generate a config/deltalogger.properties. Or make a file called deltalogger.properties in the config folder of your server directory. Put the following as the file content:
# DeltaLogger configuration
# Whether you want to use an SQLite database. Put false for MySQL.
use_sqlite=true
##! MYSQL ONLY BELOW. If you are using SQLite these are safe to ignore. !##
# Name of the MySQL database to use. If you do not have one, then do
# "CREATE DATABASE yourdbname" from a MySQL client first.
database=
# MySQL port
port=
# MySQL host/url
host=
# MySQL username
username=
# MySQL password
password=
# MySQL SSL configuration. You can leave this as false but the database
# connection will not be encrypted. If you are using MySQL across the open internet
# then you should strongly consider properly enabling SSL
useSSL=false
requireSSL=false
By default, SQLite is enabled. This means that your logs will be saved to a database found in world/deltalogger.sqlite. If you want to use MySQL, fill out the additional properties with the relevant information to access your database and set use_sqlite to false.
This mod also requires the fabric api mod, which you can find here.
In Game Commands
/dl resetpass get a temporary password for the web interface.
/dl inspect Whack a block or container to see recent interactions with the target.
/dl inspect <pos> Shows database records for the block position provided.
/dl search <args> Builds a database query with the parameters specified
/dl sql (block|transaction) <query> Runs a query on the database with the SQL specified
Support
Support can be obtained on the discord found here
License
Licensed under AGPL with additional linking permission. See the license file.
Issues
If you find a bug, please open an issue on the issues page. Please ask on the discord if you have a support issue which is not a bug
评论 0
登录后参与评分
还没有评论,来抢沙发吧