欢迎加入!

注册后,您将能够与我们社区的其他成员进行讨论、分享和私信。

无论您是想寻求帮助、分享经验,还是结识志同道合的朋友,我们都期待您的参与!一起探索更多精彩内容吧。

立即注册! 加入群聊
  • 所有的免费插件都是同步外网更新,所有都是最新版!
玩家战利品日志

玩家战利品日志 同步更新

没有下载权限
购买会员
玩家战利品日志记录详细的战利活动,并将其发送到配置的网点(控制台、文件系统和 Discord)。

配置

设置和选项可以在目录下的文件中进行配置。建议使用编辑器和验证器,以避免格式问题和语法错误。PlayerLootLogsconfig

默认配置

{
"Console": {
"Enabled": false,
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) from {1}",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {8} gave {3} ({4}) to {1}",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} looted {3} ({4}) from {1}"

},
"Discord": {
"WebHookUrl": null
"Enabled": false,
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) from {1}",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {8} gave {3} ({4}) to {1}",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} looted {3} ({4}) from {1}",

},
"File": {
"DelaySeconds": 60,
"FileNameFormat": "{0:yyyyMMdd}",
"Enabled": false,
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) from {1}",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {8} gave {3} ({4}) to {1}",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} looted {3} ({4}) from {1}"

},
"Tracking": {
"Player": true,
"PlayerCorpse": true,
"PlayerTeam": true

},
"TrackSpecificSteamIds": [
]
}

增强的 Discord 配置

"Discord": {
"WebHookUrl": null,
"Enabled": true,
"FormatLootGive": "``[{8}]{9}`` gave __{3}__ ({4}) to ``[{1}]{2}`` at ``teleportpos ({11},{12},{13})``",
"FormatLootTake": "``[{8}]{9}`` looted __{3}__ ({4}) from ``[{1}]{2}`` at ``teleportpos ({11},{12},{13})``",
"FormatLootDropSelf": "``[{8}]{9}`` dropped __{3}__ ({4}) while looting ``[{1}]{2}`` at ``teleportpos ({11},{12},{13})``",
"FormatLootDropTarget": "``[{8}]{9}`` dropped __{3}__ ({4}) from ``[{1}]{2}`` at ``teleportpos ({11},{12},{13})``"
}

格式

配置中的格式消息可以使用以下任何参数。
0: DateTimeOffset use regular formatting, Ex: {0:yyyyMMddHHmmss} = 20220317155122
1: Target Display Name, Ex: RustGamer01
2: Target Steam ID, Ex: 01234567890123456
3: Item Name, Ex: scrap.item
4: Item Change Amount, Ex: 256
5: Item Condition (Value), Ex: {0:000.0000#} = 034.05897
6: Item Condition Max (Value), Ex: {0.00} = 42.00
7: Item Condition (Percent), Ex: {0:#.###} = 81.09
8: Looter Display Name(s), comma-delimited (if more than one), Ex: LootFirst, QuestionLater
9: Looter Steam ID(s), comma-delimited (if more than one), Ex: 54123678965432178, 98745321456872586
10: Display name and Id, comma-delimited (if more than one), Ex: LootFirst[54123678965432178], QuestionLater[98745321456872586]
11: The Target Entity X Position ("East/West"), Ex: 431
12: The Target Entity Y Position ("Height"), Ex: 7
13: The Target Entity Z Position ("North/South"), Ex: -104

这些参数可用于进一步自定义日志条目。

集成

目前有三种日志记录实现可用:控制台、文件系统和 Discord。

要启用控制台,只需设置为 。Console:Enabledtrue

文件系统

可以通过设置为 来启用文件系统日志记录。默认情况下,日志将保存到 。日期格式可以通过设置进行配置。File:Enabledtrue/oxide/logs/PlayerLootLogs/playerlootlogs_[yyyyMMdd].txtFile.FileNameFormat
要更改更新日志文件之间的延迟,您可以更改设置。默认情况下,此参数设置为 60,这意味着日志将每 60 秒更新一次。File:DelaySeconds
警告:更新 将确定创建新日志文件的间隔。默认情况下,它设置为 daily。修改此文件格式时要小心。在更新此字符串之前,请确保您熟悉日期和时间格式字符串。File:FileNameFormat

不和

Discord integration is manged with the help of the Discord Logger plugin. Once the plugin is installed, a webhook for the desired discord channel must be configured. The newly created webhook url can be set in before finally setting to .Discord:WebHookUrlDiscord:Enabledtrue
注意:Discord Logger 中还有其他可以配置的设置。这些设置交互没有在我这边进行测试,只能由您自行决定使用。

仅限特定玩家

可以修改“TrackSpecificSteamIds”设置,以仅允许跟踪某些玩家。这将跟踪被掠夺的 ID 和执行掠夺的 ID。如果此字段留空,则将跟踪所有玩家。您可以通过输入玩家的 Steam ID 来添加玩家以进行跟踪,以逗号分隔。

输出

默认情况下,这些日志的输出将如下所示:
[2022/03/18 04:06:21] zenmarev looted pumpkin.item (20) from RustGamer01
[2022/03/18 04:06:22] zenmarev looted ammo_rifle.item (13) from RustGamer01
[2022/03/18 04:06:23] zenmarev looted pumpkin_seed.item (13) from RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:54] zenmarev gave ak47u.item (1) to RustGamer01
[2022/03/18 04:07:55] zenmarev dropped ak47u.item (1) from RustGamer01

通过使用参数,可以自定义输出。例如:
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] Someone dropped {4} {3} right out of {1}'s bag!",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {1} was gifted {4} {3} from {8}!",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} stole {4} x {3} from player {1}[{2}]"
这将产生:
[2022/03/18 04:06:21] zenmarev stole 20 x pumpkin.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x ammo_rifle.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x pumpkin_seed.item from player RustGamer01[01234567890123456]
[2022/03/18 04:07:47] RustGamer01 was gifted 1 keycard_red.item from zenmarev!
[2022/03/18 04:07:47] RustGamer01 was gifted 1 ak47u.item from zenmarev!
[2022/03/18 04:07:55] Someone dropped 1 ak47u.item right out of RustGamer01's bag!


增强输出

这将产生:
[Ha7riD]76561198877375763 looted metal_refined.item (5) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted leather.item (12) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted scrap.item (44) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
作者
xiaoguan
下载
0
查看
12
首次发布
最后更新

评分

0.00 星 0 星

来自xiaoguan的更多资源

后退
顶部