ChatReplay

ChatReplay - 聊天回放

登录时重放聊天记录
Bukkit / Spigot 作者 Tallcraft 支持版本 1.8 - 1.14
服务器使用量
7
服务玩家数
1
下载量
4,014
插件详细介绍

ChatReplay 会在玩家加入服务器时自动重放最近的聊天记录,方便他们快速了解加入前的聊天内容。将鼠标悬停在重放消息上,即可看到消息发送时的时间戳。你可以在配置文件中调整重放(以及内存中存储)的消息数量。注意:本插件需要 Spigot 或 PaperSpigot(已测试)。

功能说明

  • 玩家加入时自动回放最近的聊天记录
  • 消息悬停显示发送时间戳
  • 可配置回放消息数量和显示数量
  • 支持记录 DiscordSRV 消息(可选)
  • 提供命令管理聊天缓冲区与历史记录

配置文件

以下为插件生成的 config.yml 配置项:

# ChatReplay Configuration
# 
#   Should messages be automatically re-played on login?
#     replayOnLogin
# 
#   If installed, should DiscordSRV messages be recorded?
#     recordDiscordSRV
# 
#   Chat Buffer Options:
# 
#     bufferSize: How many of the most recent chat messages to store in total
#     viewSize: How many messages to show players at once. Vanilla Minecraft Client has a history limit of around 100
# 
#   Messages
# 
#     Format of timestamp string. Do not use color / formatting codes.
#     Format instructions: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
#       timestampFormat
# 
#     Header and footer message of replay output
#     Available variables: {{msgCount}}
#       replayHeader
#       replayFooter
# 
#     Formatting for single messages replayed
#     Available variables: {{player}}, {{message}}, {{timestamp}}
#       replayMsgFormat
#       replayMsgHover
# 
#     Button to navigate chat history
#        navigateHistoryButtonText

replayOnLogin: true
recordDiscordSRV: false
bufferSize: 500
viewSize: 70
timestampFormat: "yyyy-MM-dd HH:mm"
replayHeader: "&7&lReplaying last {{msgCount}} messages"
replayFooter: "&7&lReplayed last {{msgCount}} messages"
replayMsgFormat: "&7[{{player}}]: {{message}}"
replayMsgHover: "{{timestamp}}"
navigateHistoryButtonText: "&7&nSHOW OLDER"

配置项说明

  • replayOnLogin:是否在玩家登录时自动回放聊天记录。
  • recordDiscordSRV:若安装并在使用 DiscordSRV,是否记录其消息。
  • bufferSize:内存中保留的最近聊天消息总条数。
  • viewSize:一次性展示给玩家的消息条数。原版 Minecraft 客户端的聊天历史上限约为 100 条。
  • timestampFormat:时间戳字符串格式。请勿使用颜色或格式化代码。格式说明见:https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
  • replayHeader / replayFooter:回放输出的头部和尾部消息。可用变量:{{msgCount}}。
  • replayMsgFormat:单条消息的显示格式。可用变量:{{player}}、{{message}}、{{timestamp}}。
  • replayMsgHover:单条消息悬停时显示的内容。可用变量:{{timestamp}}。
  • navigateHistoryButtonText:用于浏览聊天历史的按钮文本。

命令

  • /chatreplay reload — 重载配置文件
  • /chatreplay play — 从最近消息开始回放聊天记录
  • /chatreplay more — 显示更早的聊天历史
  • /chatreplay clear — 清除已存储的聊天消息

权限

chatreplay.all:
  description: ChatReplay 的全部权限
  default: false
  children:
    chatreplay.reload: true
    chatreplay.clear: true
    chatreplay.view: true

chatreplay.reload:
  description: 重载插件配置
  default: false

chatreplay.clear:
  description: 清除聊天缓冲区
  default: false

chatreplay.view:
  description: 查看回放的聊天记录(包括登录时和通过命令)
  default: true
  children:
    chatreplay.play: true
    chatreplay.more: true
    chatreplay.playlogin: true

chatreplay.play:
  description: 查看最近的聊天记录
  default: false

chatreplay.more:
  description: 查看更早的聊天消息
  default: false

chatreplay.playlogin:
  description: 登录时回放聊天记录
  default: false

支持与反馈

这是作者发布的第一个插件,非常感谢你的反馈,也欢迎提交 Pull Request!

报告 Bug 请前往:https://github.com/Tallcraft/ChatReplay/issues

测试支持版本
1.8 1.9 1.10 1.11 1.12 1.13 1.14
版本分布
基本信息
插件名称 ChatReplay
作者 Tallcraft
平台 Bukkit / Spigot
支持版本 1.8 - 1.14
点赞数 14
最近版本
2.0.3 7