Verbatim - Minecraft 高级聊天模组
Verbatim 是一款面向 Minecraft 服务器的服务端模组,旨在通过提供可配置的聊天频道、私聊功能、Discord 集成等特性来增强游戏内的交流体验。它致力于打造一个灵活且强大的聊天系统,适用于各种类型的服务器,尤其是那些注重角色扮演或社区互动的服务器。
功能特性
- 自定义聊天频道:
- 定义多个具有独特名称、显示前缀(例如
&a[G])和快捷方式(例如 g)的聊天频道。
- 权限控制: 使用权限节点保护频道(如果可用则与 LuckPerms 集成,否则使用原版 OP 等级)。
- 聊天范围: 为每个频道设置聊天范围(例如用于本地频道),或者将其设置为全局范围。
- 颜色自定义: 配置频道名称、玩家名称、分隔符和消息的颜色。
- 常驻频道: 指定玩家始终处于其中且无法退出的频道。
- 成人内容警告: 当玩家加入标记为“成人”内容的频道时,可选择显示警告信息。
- 特殊预设频道类型:
local:实现基于距离的消息淡化/模糊效果,并支持不同的后缀(例如 !! 表示大喊,* 表示耳语),这些后缀会影响消息的范围和样式。(特别感谢 MassiveChat 提供的这个灵感!)
- 直接消息 (DM) / 私聊 (PM):
- 向其他在线玩家发送私密消息。
- 快速回复上一条收到的 DM 消息的功能。
- 聊天前缀与快捷方式:
- 使用前缀可以快速切换焦点或将消息发送到特定的频道/DM,而无需使用命令(例如输入
g: Hello everyone! 即可将消息发送到并聚焦于 'global' 频道)。
- 使用
d: 前缀可以聚焦/回复上一次 DM 的对象。
- Discord 集成:
- 将游戏内聊天(特别是指定的“全局”频道)桥接到 Discord 频道。
- 将来自 Discord 的消息中继回游戏内。
- 可自定义在游戏内显示的 Discord 消息的前缀。
- 持久化玩家设置:
- 配置选项:
- 通过 TOML 文件 (
verbatim-server.toml,位于服务器 config 文件夹中) 进行广泛配置。
- 定义所有频道、默认频道、Discord 机器人令牌、频道 ID 及其他设置。
- 管理员命令与工具:
- 动态重新加载配置(通常需要 OP 权限/相应权限节点)。
命令
大多数命令可通过 /channel 或 /verbatim:channel 访问。
/channels 或 /channel list
- 列出所有可用的聊天频道以及你当前在这些频道中的状态。
/channel focus <channelName>
- 设置你当前活跃的打字频道。如果你尚未加入该频道(且拥有权限),此操作也会自动加入该频道。
/channel join <channelName>
/channel leave <channelName>
/channel leave
/channel help
- 显示包含可用 Verbatim 命令和聊天前缀的帮助信息。
直接消息命令:
/msg <player> [message] 或 /tell <player> [message]
- 向指定玩家发送直接消息。如果未提供消息,则将你的聊天焦点切换到该玩家,以便后续消息发送给对方。
/r [message]
- 回复最后给你发送直接消息的玩家。如果未提供消息,则将你的聊天焦点切换到该玩家。
/w <player> [message]
聊天前缀(示例):
g: Your message here - 将 "Your message here" 发送到快捷方式为 "g" 的频道并聚焦该频道。
d: Your reply here - 将 "Your reply here" 发送给最后给你发 DM 的人,并与之聚焦 DM 对话。
d:(无消息内容) - 聚焦于最后给你发 DM 的人的 DM 对话(等同于无消息内容的 /r 命令)。
配置
Verbatim 通过 verbatim-server.toml 文件进行配置,通常在模组首次运行后,该文件会位于你的 Minecraft 服务器 config 目录中。
需要配置的关键部分:
defaultChannelName: 玩家默认使用的频道。
channels: 一个列表,其中每一项定义了一个聊天频道的属性(名称、前缀、快捷方式、权限、范围、颜色等)。
Discord Integration: Discord 机器人的设置,包括机器人令牌、频道 ID、消息前缀以及启用/禁用该功能。
权限
如果服务器上安装了 LuckPerms,Verbatim 会尝试使用它来进行权限检查。如果未找到 LuckPerms,它将回退到使用原版 Minecraft 的操作员 (OP) 等级。
- 频道访问: 频道权限在配置文件中每个频道的
permission 字段中定义(例如 verbatim.channel.staff)。如果设置了权限,玩家需要拥有该节点才能在频道中加入/发言(除非是 alwaysOn 常驻频道)。
Verbatim - Advanced Chat Mod for Minecraft
Verbatim is a Minecraft server-side mod designed to enhance in-game communication by providing configurable chat channels, direct messaging, Discord integration, and more. It aims to offer a flexible and powerful chat system suitable for various server types, especially those with roleplaying or community focus.
Features
- Customizable Chat Channels:
- Define multiple chat channels with unique names, display prefixes (e.g.,
&a[G]), and shortcuts (e.g., g).
- Permissions: Secure channels with permission nodes (integrates with LuckPerms if available, otherwise uses vanilla OP levels).
- Chat Range: Set per-channel chat ranges (e.g., for local channels) or make them global.
- Color Customization: Configure colors for channel names, player names, separators, and messages.
- Always-On Channels: Designate channels that players are always in and cannot leave.
- Mature Content Warnings: Option to display a warning when players join channels marked as "mature."
- Special Pre-Made Channel Types:
local: Implements distance-based message fading/obscuring and supports different suffixes (e.g., !! for shouting, * for whispering) that affect message range and style. (Big shout-out to MassiveChat for this idea!)
- Direct Messaging (DM) / Private Messaging (PM):
- Send private messages to other online players.
- Quick reply functionality to the last incoming DM.
- Chat Prefixes & Shortcuts:
- Use prefixes to quickly switch focus or send messages to specific channels/DMs without commands (e.g.,
g: Hello everyone! to send to and focus the 'global' channel).
d: prefix to focus/reply to the last DM.
- Discord Integration:
- Bridge in-game chat (specifically a designated "global" channel) to a Discord channel.
- Relay messages from Discord back into the game.
- Customizable message prefix for Discord messages shown in-game.
- Persistent Player Settings:
- Remembers which channels a player has joined and their focused channel across sessions.
- Configuration:
- Extensive configuration via a TOML file (
verbatim-server.toml in the server's config folder).
- Define all channels, default channel, Discord bot token, channel ID, and other settings.
- Admin Commands & Utilities:
- Reload configuration on the fly (typically requires OP/permission).
Commands
Most commands are accessible via /channel or /verbatim:channel.
/channels or /channel list
- Lists all available chat channels and your current status in them.
/channel focus <channelName>
- Sets your active typing channel. This will also automatically join the channel if you aren't already in it (and have permission).
/channel join <channelName>
- Joins a specific channel to receive its messages.
/channel leave <channelName>
- Leaves a specific joined channel.
/channel leave
- Leaves your currently focused channel (if it's not an "always-on" channel).
/channel help
- Displays a help message with available Verbatim commands and chat prefixes.
Direct Message Commands:
/msg <player> [message] or /tell <player> [message]
- Sends a direct message to the specified player. If no message is provided, it focuses your chat on that player for subsequent messages.
/r [message]
- Replies to the last player who sent you a direct message. If no message is provided, it focuses your chat on that player.
/w <player> [message]
Chat Prefixes (examples):
g: Your message here - Sends "Your message here" to the channel with shortcut "g" and focuses it.
d: Your reply here - Sends "Your reply here" to the last person who DM'd you and focuses DM with them.
d: (with no message) - Focuses DM with the last person who DM'd you (same as /r with no message).
Configuration
Verbatim is configured through the verbatim-server.toml file, typically located in the config directory of your Minecraft server after the mod is run for the first time.
Key areas to configure:
defaultChannelName: The channel players will default to.
channels: A list where each entry defines a chat channel's properties (name, prefix, shortcut, permission, range, colors, etc.).
Discord Integration: Settings for the Discord bot, including bot token, channel ID, message prefix, and enabling/disabling the feature.
Permissions
Verbatim attempts to use LuckPerms for permission checking if it's available on the server. If LuckPerms is not found, it falls back to vanilla Minecraft's operator (OP) levels.
- Channel Access: Channel permissions are defined in the
permission field for each channel in the configuration file (e.g., verbatim.channel.staff). If a permission is set, players will need that node to join/speak in the channel (unless it's alwaysOn).
评论 0
登录后参与评分
还没有评论,来抢沙发吧