Chat Toggler — 一款轻量级的 Minecraft 服务器插件,最初为 SmileSMP 创建。
Chat Mode 是一款轻量级的 Minecraft 服务器插件,允许管理员控制谁可以使用公共聊天。它适用于聊天锁定、管理情况、活动、惩罚或临时全服静音。
当启用 Chat Mode 时,只有被特别添加到允许聊天列表中的玩家才能发送消息。其他所有玩家在获得权限或禁用 Chat Mode 之前都无法聊天。
✨ 功能
? 全服聊天模式
随时启用或禁用受限聊天。
启用时,只有经过批准的玩家才能发送消息。
禁用时,所有人都可以正常聊天。
? 单个玩家的聊天权限
将单个玩家添加到允许聊天列表中,或将其移除。
玩家通过 UUID 进行识别,这意味着即使他们更改了 Minecraft 用户名,其权限仍与该账户关联。
? 阻止私聊
可选择阻止不允许聊天的玩家使用 /msg 等私聊命令。
这有助于确保聊天锁定时,受限制的玩家确实保持沉默。
?️ 简单的命令
在游戏中直接管理 Chat Mode 和允许聊天的玩家。
? 持久化的玩家列表
允许聊天的玩家存储在 chatplayers.yml 中。
通常无需手动编辑该文件。
? 调试模式
可选的调试消息让你看到命令成功或失败的情况。
对服务器管理和故障排除很有用。
? 命令
/chatmode <enable|disable>
启用或禁用 Chat Mode。
已启用:
只有 chatplayers.yml 中列出的玩家才能发送消息。
已禁用:
所有人都可以正常聊天。
/chatplayer <add|remove> <username>
将玩家添加到允许聊天列表中,或将其移除。
示例:
/chatplayer add Steve
/chatplayer remove Steve
玩家的 UUID 会自动存储在 chatplayers.yml 中。
/getchatmodestatus
显示 Chat Mode 当前是启用还是禁用。
/getchatplayer <username>
检查特定玩家当前是否允许聊天。
⚙️ 配置
主配置文件允许你控制 Chat Mode 和私聊阻止功能。
Enabled: true
Disableprivatemessages: true
debug: true
Enabled
控制 Chat Mode 是否激活。
Enabled: true
只有允许列表上的玩家才能聊天。
Enabled: false
所有人都可以正常聊天。
Disableprivatemessages
控制是否阻止受限制的玩家发送私聊消息。
Disableprivatemessages: true
建议在 Chat Mode 激活期间保持此选项启用。否则,无法使用公共聊天的玩家可能仍然可以通过 /msg 或其他类似的私聊功能进行交流。
debug
启用有关插件操作的附加信息。
debug: true
注意:更改此设置后需要重启服务器。目前没有用于更改此选项的游戏内命令。
例如,在使用 /chatplayer add <username> 添加玩家时,调试模式可以提供玩家已成功添加的确认信息。
? 文件
config.yml
包含主要的 Chat Mode 设置。
chatplayers.yml
存储在 Chat Mode 启用时允许聊天的玩家的 UUID。
示例:
chatplayers:
8667ba71-b85a-4004-af54-457a9734eed7:
通常无需手动编辑此文件。请改用 /chatplayer add 和 /chatplayer remove。
? 为什么使用 UUID?
Chat Mode 使用 Minecraft UUID 而不是用户名来识别玩家。
玩家的用户名可能会更改,但其 UUID 通常保持不变。这意味着即使在更改 Minecraft 用户名后,其允许聊天的状态仍与该账户关联。
? 用例
Chat Mode 可用于以下场景:
全服聊天锁定
管理情况
仅允许某些玩家发言的活动
临时惩罚
由管理员控制的讨论
在公告或重要活动期间防止聊天
让普通玩家保持安静,同时允许选定的玩家进行交流
?️ 示例
你想暂时静音服务器,但允许你的管理员进行沟通。
首先,启用 Chat Mode:
/chatmode enable
然后添加你的管理员成员:
/chatplayer add Steve
/chatplayer add Alex
现在只有 Steve 和 Alex 可以使用公共聊天。
当锁定结束后:
/chatmode disable
所有人又可以正常聊天。
? 快速摘要
设置 描述
Enabled: true 只有经过批准的玩家才能聊天
Enabled: false 所有人都可以聊天
Disableprivatemessages: true 阻止受限制玩家的私聊消息
debug: true 显示额外的插件信息
Chat Mode 为服务器管理员提供了一种简单的方法来控制谁可以交流,而无需逐个手动禁言玩家。
Chat Toggler — A lightweight Minecraft server plugin originally created for the SmileSMP.
Chat Mode is a lightweight Minecraft server plugin that lets staff control who is allowed to use public chat. It is useful for chat lockdowns, moderation situations, events, punishments, or temporary server-wide silence.
When Chat Mode is enabled, only players specifically added to the allowed-chat list can send messages. Everyone else is prevented from chatting until they are given permission or Chat Mode is disabled.
✨ Features
? Server-wide Chat Mode
Enable or disable restricted chat at any time.
When enabled, only approved players can send messages.
When disabled, everyone can chat normally.
? Individual Chat Permissions
Add or remove individual players from the allowed-chat list.
Players are identified using their UUID, meaning their permission remains associated with them even if they change their Minecraft username.
? Private Message Blocking
Optionally prevents players who aren't allowed to chat from using private messaging commands such as /msg.
This helps ensure that a chat lockdown actually keeps restricted players quiet.
?️ Simple Commands
Manage Chat Mode and allowed players directly in-game.
? Persistent Player List
Allowed players are stored in chatplayers.yml.
You normally don't need to edit the file manually.
? Debug Mode
Optional debug messages let you see when commands succeed or fail.
Useful for server administration and troubleshooting.
? Commands
/chatmode <enable|disable>
Enables or disables Chat Mode.
Enabled:
Only players listed in chatplayers.yml can send messages.
Disabled:
Everyone can chat normally.
/chatplayer <add|remove> <username>
Adds or removes a player from the allowed-to-chat list.
Examples:
/chatplayer add Steve
/chatplayer remove Steve
The player's UUID is automatically stored in chatplayers.yml.
/getchatmodestatus
Displays whether Chat Mode is currently enabled or disabled.
/getchatplayer <username>
Checks whether a specific player is currently allowed to chat.
⚙️ Configuration
The main configuration allows you to control Chat Mode and private-message blocking.
Enabled: true
Disableprivatemessages: true
debug: true
Enabled
Controls whether Chat Mode is active.
Enabled: true
Only players on the allowed list can chat.
Enabled: false
Everyone can chat normally.
Disableprivatemessages
Controls whether restricted players are prevented from sending private messages.
Disableprivatemessages: true
It is recommended to keep this enabled while Chat Mode is active. Otherwise, players who cannot use public chat may still be able to communicate through /msg or similar private-message functionality.
debug
Enables additional information about plugin actions.
debug: true
Note: This setting requires a server restart after changing it. There is currently no in-game command for changing this option.
For example, when adding a player with /chatplayer add <username>, debug mode can provide confirmation that the player was successfully added.
? Files
config.yml
Contains the main Chat Mode settings.
chatplayers.yml
Stores the UUIDs of players who are allowed to chat while Chat Mode is enabled.
Example:
chatplayers:
8667ba71-b85a-4004-af54-457a9734eed7:
You normally do not need to edit this file manually. Use /chatplayer add and /chatplayer remove instead.
? Why UUIDs?
Chat Mode uses Minecraft UUIDs instead of usernames to identify players.
A player's username can change, but their UUID normally remains the same. This means their allowed-chat status stays associated with their account even after changing their Minecraft username.
? Use Cases
Chat Mode can be useful for:
Server-wide chat lockdowns
Moderation situations
Events where only certain players should speak
Temporary punishments
Staff-controlled discussions
Preventing chat during announcements or important events
Keeping players quiet while still allowing selected players to communicate
?️ Example
You want to temporarily silence the server while allowing your staff to communicate.
First, enable Chat Mode:
/chatmode enable
Then add your staff members:
/chatplayer add Steve
/chatplayer add Alex
Now only Steve and Alex can use public chat.
When the lockdown is over:
/chatmode disable
Everyone can chat normally again.
? Quick Summary
Setting Description
Enabled: true Only approved players can chat
Enabled: false Everyone can chat
Disableprivatemessages: true Blocks private messages from restricted players
debug: true Shows additional plugin information
Chat Mode gives server staff a simple way to control who can communicate without needing to manually mute players one by one.
评论 0
登录后参与评分
还没有评论,来抢沙发吧