VeloxRelay
VeloxRelay 是一款轻量级的 Velocity 插件,通过 Webhook 将玩家活动/服务器事件转发至 Discord。
它支持集成聊天消息、代理加入与离开以及服务器切换,并提供可自定义的消息格式。我计划在未来添加更多可转发的的事件,并可能引入其他功能以简化配置流程。
config.yml
# VeloxRelay 配置文件
# 如果任何格式选项留空(""),则对应的消息广播将被禁用;若未指定,则默认为其各自的默认格式
webhooks:
- "URLHERE" # 不带 https:// 前缀的字符串将被忽略
接收到的任何聊天消息的格式
{server} 将被替换为服务器名称
{player} 将被替换为玩家的用户名
{message} 将被替换为玩家发送的消息
format: "{server} {player}: {message}"
玩家连接到代理时的消息格式
{player} 将被替换为玩家的用户名
joinformat: "{player} 已连接到代理。"
玩家进入服务器时的消息格式
{server} 将被替换为服务器名称
{player} 将被替换为玩家的用户名
enterformat: "{player} 已进入 {server}。"
玩家离开代理时的消息格式
{player} 将被替换为玩家的用户名
leaveformat: "{player} 已断开与代理的连接。"
</details>
VeloxRelay
VeloxRelay is a lightweight Velocity plugin that relays player activity/server events to Discord through webhooks.
It integrates chat messages, proxy joins and leaves, and server switches, with customizable message formats. I plan to add more relayed events in the future, and perhaps some other features that allow smoother configuration.
config.yml
# VeloxRelay configuration file
# if any format option is left blank (""), it's corresponding
# message broadcast will be disabled, if unspecified it will
# default to it's respective default format
webhooks:
- "URLHERE" # non-https prefixed strings are ignored
# Message format for any chat message received
# {server} will be replaced with the server name
# {player} will be replaced with the player's username
# {message} will be replaced with the message sent by the player
format: "`{server}` **{player}**: {message}"
# Message format for when a player joins the proxy
# {player} will be replaced with the player's username
joinformat: "**{player}** has connected to the proxy."
# Message format for when a player enters a server
# {server} will be replaced with the server name
# {player} will be replaced with the player's username
enterformat: "**{player}** has entered `{server}`."
# Message format for when a player leaves the proxy
# {player} will be replaced with the player's username
leaveformat: "**{player}** has disconnected from the proxy."
评论 0
登录后参与评分
还没有评论,来抢沙发吧