CommandsSpy
一个用于将命令记录到服务器控制台的模组。已存在和不存在的所有命令都会被记录。权限允许或禁止执行的命令也会被添加到服务器日志中。
安装
只需将该模组放入服务器的 mods 目录,它便会开始监控已执行的命令。
启动时会自动创建配置文件。
示例
当使用配置 "logArguments": false(默认值)时,玩家 "Ultra_MC" 执行 /gamemode creative 命令会被记录为不带参数的形式:
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode
当使用配置 "logArguments": true 时,玩家 "Ultra_MC" 执行 /gamemode creative 命令会被记录为带参数的形式:
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode creative
玩家 "Ultra_MC" 执行 /op 命令会在服务器日志中被记录:
[18:56:38] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] op
服务器控制台执行 /list 会在服务器日志中被记录:
[18:53:02] [Server thread/INFO]: [CommandsSpy] [Server] list
RCON 执行 /save-all 会在服务器日志中被记录:
[09:25:01] [Server thread/INFO]: [CommandsSpy] [Rcon] save-all
配置
配置文件 config/commands-spy.json
初始配置
{
"blacklist": [],
"logArguments": false
}
blacklist(黑名单)
为防止记录某些命令,请将其添加到黑名单中。
例如 - 为了保持玩家对话的隐私,您可以避免记录 tell 和 t 命令。
"blacklist": ["tell", "t"]
log arguments(记录参数)
默认情况下不记录命令参数:"logArguments": false。
示例:/a b c - [CommandsSpy] [Player: Ultra_MC] a
若要记录所有命令的参数,请使用 "logArguments": true。
示例:/a b c - [CommandsSpy] [Player: Ultra_MC] a b c
CommandsSpy
A mod to log commands to the server console. Both existing and non-existing commands are logged. Commands that are permitted or not are added to the server logs as well.
Installation
Simply place the mod into the mods directory of your server, and it will start monitoring executed commands. On startup, the config file will be created automatically.
Examples
Player "Ultra_MC" executing "/gamemode creative" command is logged without arguments in server logs when using config "logArguments": false (default):
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode
Player "Ultra_MC" executing "/gamemode creative" command is logged with arguments in server logs when using config "logArguments": true:
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode creative
Player "Ultra_MC" executing "/op" command is logged in server logs:
[18:56:38] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] op
Server console executing "/list" is logged in server logs:
[18:53:02] [Server thread/INFO]: [CommandsSpy] [Server] list
RCON executing "/save-all" is logged in server logs:
[09:25:01] [Server thread/INFO]: [CommandsSpy] [Rcon] save-all
Configuration
Config file config/commands-spy.json
Initial config
{
"blacklist": [],
"logArguments": false
}
blacklist
To prevent logging certain commands, add them to the blacklist.
Example - to maintain privacy of players' conversations, you can avoid logging commands tell and t.
"blacklist": ["tell", "t"]
log arguments
Command arguments are not logged by default: "logArguments": false.
Example: /a b c - [CommandsSpy] [Player: Ultra_MC] a
To log arguments of all commands, use "logArguments": true.
Example: /a b c - [CommandsSpy] [Player: Ultra_MC] a b c
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandsSpy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
为 Fabric、Quilt、NeoForge 和 Forge 添加对 Minecraft 26.3 的支持。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧