diff --git a/README.md b/README.md index e11c1ff..7a5e03a 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,17 @@ 运行天眼插件后,将在服务端目录的plugins目录下生成tianyan_data文件夹,里面有插件的配置文件config.json,打开config.json,里面是默认配置 ```shell -{"是否记录自然方块": true, "是否记录人工方块": true,"是否仅记录重要生物": true} +{ + "record_nature_block": true, + "record_human_block": true, + "only_record_important_animal": true, + "10s_message_max": 6, + "10s_command_max": 12 +} ``` +其从上到下分别代表:记录自然方块、记录人造方块、仅记录重要生物、10秒内玩家可发送消息的最大次数、10秒内玩家可使用命令的最大次数 + 插件默认配置仅记录部分重要生物的受击事件。如果需要记录全部生物的受击事件,请将“是否仅记录重要生物”后的“false”修改为“true”。 插件默认使用中文,可以通过修改天眼插件数据目录下的lang.json文件来使用翻译。插件提供ChatGPT与人工润色的英文语言配置文件,可在release处下载。 @@ -93,7 +101,7 @@ /tys 搜索类型 搜索关键词 时间(单位:小时) ``` -搜索类型:player action object(玩家或行为实施者 行为 被实施行为的对象) 搜索关键词:玩家名或行为实施者名 交互 破坏 攻击 放置 被实施行为的对象名。关键词可以为玩家名、行为名、行为实施者名、被实施行为的对象名,其中行为名共以下几种:交互、破坏、攻击、放置;被实施行为的对象名除了以下类型为中文值,其余皆为游戏中的ID:箱子、陷阱箱、潜影盒、末影箱、木桶、漏斗、发射器、投掷器、熔炉、高炉、拉杆、按钮、激活的红石中继器、未激活的红石中继器、激活的红石比较器、未激活的红石比较器、音符盒、唱片机、告示牌、悬挂式告示牌。 +搜索类型:player action object(玩家或行为实施者 行为 被实施行为的对象) 搜索关键词:玩家名或行为实施者名 交互 破坏 攻击 放置 被实施行为的对象名。关键词可以为玩家名、行为名、行为实施者名、被实施行为的对象名,其中行为名共以下几种:交互、破坏、攻击、放置;被实施行为的对象名为其在游戏中的ID 使用 /tysgui 命令使用图形菜单搜索关键词查询玩家及部分实体行为记录 格式: @@ -143,6 +151,12 @@ /banidlist ``` +使用/tyclean 命令清理数据库 + +```shell +/tyclean 时间(单位:小时) +``` + 实验性功能 使用/tyback 命令还原玩家直接方块放置与破坏行为 ```shell diff --git a/README_eng.md b/README_eng.md index e603ad2..b1d0979 100644 --- a/README_eng.md +++ b/README_eng.md @@ -66,9 +66,17 @@ Download the latest plugin version from the release section and place it in the After running the plugin, a `tianyan_data` folder will be created in the `plugins` directory. Inside, there is a configuration file named `config.json` with the following default configuration: ```json -{"Record natural blocks": true, "Record artificial blocks": true, "Record only significant entities": true} +{ + "record_nature_block": true, + "record_human_block": true, + "only_record_important_animal": true, + "10s_message_max": 6, + "10s_command_max": 12 +} ``` +From top to bottom, these options respectively represent: logging natural blocks, logging artificial blocks, logging only significant entities, the maximum number of messages a player can send within 10 seconds, and the maximum number of commands a player can execute within 10 seconds. + - To log all entity hit events instead of just important ones, change `"Record only significant entities": true` to `"false"`. - The plugin defaults to Chinese but supports English via a language configuration file (`lang.json`). A pre-translated English configuration file made by ChatGPT is available for download in the release section. @@ -95,7 +103,7 @@ Use `/tys` to search for specific keywords. Format: ``` - **Search types:** `player`, `action`, `object` (e.g., player name, action type, or target object). -- **Keywords:** Examples include player names, action types (`Interact`, `Destroy`, `Attack`, `Place`), or object names (in-game IDs or ohter name in lang.json). +- **Keywords:** Examples include player names, action types (`Interact`, `Destroy`, `Attack`, `Place`), or object names in-game IDs. Use `/tysgui` to perform keyword searches with a graphical menu. Format: @@ -130,6 +138,12 @@ Use `/tysgui` to perform keyword searches with a graphical menu. Format: /banidlist ``` +Use /tyclean command to clean database + +```shell +/tyclean time(hours) +``` + ### Experimental Features - Use `/tyback` to restore block placement and destruction actions. Format: