DiscordInGameConfig
是一款轻量级、模块化的管理工具,旨在将你的 Minecraft 服务器与 Discord 连接起来。它将日常日志设置、机器人链接、词过滤和处罚配置等 100% 的功能整合到一个优雅且带有动画效果的游戏中界面中。
无需 FTP 配置,无需重新加载文件,无语法错误。只有纯粹、实时的
控制。
? 传统日志记录器 vs. DiscordInGameConfig
⚙️ 配置
❌ *传统日志记录器:打开 FTP ➔ 编辑复杂的 .yml 文件 ➔ 执行重载命令 ➔ 修复语法错误 ➔ 重启服务器。
✅ DiscordInGameConfig:输入 /discordconfig ➔ 在美观的 GUI 中点击按钮 ➔ 即时保存!
─── ⋆⋅☆⋅⋆ ───
? 脏话与封禁过滤器
❌ 传统日志记录器:硬编码文本配置,手动添加文件。
✅ DiscordInGameConfig:脏话与封禁过滤器中心,支持一键添加/移除。
─── ⋆⋅☆⋅⋆ ───
?️ 双向管理
❌ 传统日志记录器:纯文本警报,手动复制粘贴命令。
✅ DiscordInGameConfig:动态 Discord 按钮([静音]、[封禁]、[忽略]),实时更新状态。
─── ⋆⋅☆⋅⋆ ───
?️ 安全与隐私
❌ 传统日志记录器:在 /login 或 /register 时意外记录密码。
✅ DiscordInGameConfig:ProtocolLib 数据包拦截(完全隐藏敏感命令数据包参数)。
─── ⋆⋅☆⋅⋆ ───
⚡ 反作弊检查
❌ 传统日志记录器:依赖重型外部反作弊系统来记录行为。
✅ DiscordInGameConfig:内置动作检查(破坏机、快速放置、自动点击器、聊天刷屏)并发送 Discord 警报。
? 主要功能
?️ 数据包级别的安全核心
不依赖于简单的聊天监听器,该插件使用 ProtocolLib 在网络协议层(PacketType.Play.Client.CHAT_COMMAND)拦截命令数据包。当玩家输入注册的私有命令(如 /login 或 /register)时,我们的系统会捕获基础命令,并在其进入服务器日志或 Discord 之前立即停止对其的记录。
? 高级蓝紫色主题中心布局
所有菜单均采用现代化的 54 格库存界面,配有自定义样式的 Discord 风格边框(蓝色和青色染色玻璃)。按钮对称映射以避免拥挤,使用 1.21 主题方块(恢复指南针、战锤、回声碎片、望远镜)。过渡效果按顺序播放,伴随柔和的水晶紫水晶音效(BLOCK_AMETHYST_BLOCK_STEP)。

?️ 动态、改变状态的 Discord 按钮
当发送警报时,Discord 会向你的管理团队显示按钮。点击 [静音] 或 [封禁] 会立即触发相应的游戏内处罚控制台命令。同时,Discord 按钮本身也会发生变化(例如,静音变为绿色的解除静音按钮,封禁变为解封),使你的管理团队与违规者的当前状态保持同步。
.webp)
⚙️ 内置轻量级反作弊动作
包括高度可靠、性能开销极小的检查:
- 破坏机 (Nuker):标记过快破坏方块的玩家。
- 快速放置 (FastPlace):标记方块放置速率限制。
- 自动点击器 (AutoClicker):检测超过 CPS 限制的实体命中。
- 聊天刷屏 (Chat Spam):标记文本消息刷屏的频率限制。这些限制可以在游戏内的过滤器中心直接切换启用/禁用并进行更新。
.webp)
?️ 开箱即用的多语言支持
使用语言选择器即时切换系统语言。支持英语、俄语、西班牙语、德语、法语和中文。
.webp)
? 默认配置
lang: "en"
bot-token: "YOUR_BOT_TOKEN"
channel-id: "YOUR_CHANNEL_ID"
settings:
log-chat: true
log-commands: true
log-join: true
log-quit: true
log-suspicious: true
punishments:
auto-punish: false
mute-cmd: "mute %player% %duration% %reason%"
ban-cmd: "ban %player% %duration% %reason%"
mute-time: "1h"
mute-reason: "Chat violation"
ban-time: "perm"
ban-reason: "Suspicious activity"
unmute-cmd: "unmute %player%"
unban-cmd: "unban %player%"
filters:
banned-words:
- "hack"
- "cheat"
ban-words:
- "ddos"
- "swat"
suspicious-commands:
- "/op"
- "/stop"
anticheat:
nuker-enabled: true
nuker-limit: 20
clicker-enabled: true
clicker-limit: 25
fastplace-enabled: true
fastplace-limit: 15
spam-enabled: true
spam-limit: 5
privacy:
hidden-commands:
- "/login"
- "/register"
- "/l"
- "/reg"
? 支持与社区
需要配置帮助,或想建议新功能?加入我们的 Discord 服务器
GitHub 仓库
⚙️ 逐步 Discord 机器人设置指南
步骤 1:创建 Discord 应用程序
- 前往 Discord 开发者门户
- 点击右上角的“新建应用程序”(New Application),命名它(例如 Server Logs),然后点击“创建”。
步骤 2:获取 Token 并启用意图
- 在侧边栏中,选择“Bot”。
- 点击“重置 Token”并复制生成的密钥。
- 向下滚动到“特权网关意图”(Privileged Gateway Intents),启用“消息内容意图”(Message Content Intent)(这是读取 Discord 按钮点击所必需的)。点击“保存更改”。
步骤 3:将机器人邀请到你的服务器
- 在侧边栏中,转到 OAuth2 -> URL 生成器。
- 在范围(Scopes)下选择“bot”。
- 在机器人权限(Bot Permissions)下选择“管理员”(Administrator)(或者“查看频道”、“发送消息”和“嵌入链接”)。
- 复制底部的 URL,在浏览器中打开它,并授权该机器人。
步骤 4:链接到 Minecraft
- 在 Discord 中启用开发者模式(用户设置 -> 高级)。
- 右键单击你想要记录的频道,然后单击“复制频道 ID”。
- 在游戏中,输入 /discordconfig -> 点击“链接 Discord”(钻石图标)-> 左键单击 Bot Token 并粘贴它,然后左键单击 Channel ID 并粘贴该 ID。现在你的机器人已连接!
DiscordInGameConfig
is a lightweight, modular administration utility designed to bridge your Minecraft server with Discord. It moves 100% of your daily loggingsetup, bot linking, word filtering, and punishment configurations into anelegant, animated in-game interface.
No FTP configurations, no file reloads, no syntax errors. Just pure, real-time
control.
? Standard Loggers vs. DiscordInGameConfig
⚙️ Configuration
❌ *Traditional Loggers: Open FTP ➔ Edit complex .yml ➔ Reload command ➔ Fix syntax errors ➔ Restart.
✅ DiscordInGameConfig: Type /discordconfig ➔ Click a button in a beautiful GUI ➔ Saved instantly!
─── ⋆⋅☆⋅⋆ ───
? Swearing & Ban Filters
❌ Traditional Loggers: Hardcoded text configs, manual file additions.
✅ DiscordInGameConfig: Swearing & Ban Filters Hub with 1-click additions/removals.
─── ⋆⋅☆⋅⋆ ───
?️ Two-Way Moderation
❌ Traditional Loggers:Flat text alerts, copy-paste commands manually.
✅ DiscordInGameConfig: Dynamic Discord Buttons ([Mute], [Ban], [Ignore]) that update states in real-time.
─── ⋆⋅☆⋅⋆ ───
?️ Security & Privacy
❌ Traditional Loggers: Accidental password logging on /login or /register.
✅ DiscordInGameConfig: ProtocolLib Packet Interception (hides sensitive command packet arguments entirely).
─── ⋆⋅☆⋅⋆ ───
⚡ Anti-Cheat Checks
❌ Traditional Loggers: Relies on heavy external anti-cheats to log actions.
✅ DiscordInGameConfig: Built-in action checks (Nuker, FastPlace, AutoClicker, Chat Spam) with Discord alerts.
? Key Features
?️ Packet-Level Security Core
Instead of relying on
simple chat listeners, the plugin intercepts command packets at the network
protocol layer (PacketType.Play.Client.CHAT_COMMAND) using ProtocolLib. When a
player types a registered private command (like /login or /register), our system
captures the base command and immediately drops logging for it before it even
hits the server logs or Discord.
? Premium, Blurple-Themed Hub Layouts
All menus utilize a modern 54-slot inventory with custom styled Discord-colored borders
(Blue and Cyan stained glass). Buttons are mapped symmetrically to avoid
crowding, using 1.21-themed blocks (Recovery Compasses, Mace, Echo Shards,
Spyglasses). The transitions are animated sequentially, playing a soft crystal
amethyst sound (BLOCK_AMETHYST_BLOCK_STEP).

?️ Dynamic, State-Mutating Discord Buttons
When an alert is sent, Discord displays buttons to your staff. Clicking [Mute] or [Ban] immediately triggers the corresponding in-game punishment console command. Simultaneously, the Discord button itself mutates (e.g., Mute changes to a green Unmute button, and Ban changes to Unban), keeping your staff synced on the current status of the
offender.
.webp)
⚙️ Built-In Lightweight Anti-Cheat Actions
Includes highly reliable, lightweight performance checks:
-
Nuker: Flags players breaking blocks too fast.
-
FastPlace: Flags block placing rate limits.
-
AutoClicker: Detects entities hit above CPS limits.
-
Chat Spam: Flags rate limits for spamming text messages. Limits can be
toggled on/off and updated directly from the Filters Hub in-game.
.webp)
?️ Multi-Language Out of the Box
Swap system languages instantly using the Language Selector. Supporting English,
Russian, Spanish, German, French, and Chinese.
.webp)
? Default Configuration
lang: "en"
bot-token: "YOUR_BOT_TOKEN"
channel-id: "YOUR_CHANNEL_ID"
settings:
log-chat: true
log-commands: true
log-join: true
log-quit: true
log-suspicious: true
punishments:
auto-punish: false
mute-cmd: "mute %player% %duration% %reason%"
ban-cmd: "ban %player% %duration% %reason%"
mute-time: "1h"
mute-reason: "Chat violation"
ban-time: "perm"
ban-reason: "Suspicious activity"
unmute-cmd: "unmute %player%"
unban-cmd: "unban %player%"
filters:
banned-words:
- "hack"
- "cheat"
ban-words:
- "ddos"
- "swat"
suspicious-commands:
- "/op"
- "/stop"
anticheat:
nuker-enabled: true
nuker-limit: 20
clicker-enabled: true
clicker-limit: 25
fastplace-enabled: true
fastplace-limit: 15
spam-enabled: true
spam-limit: 5
privacy:
hidden-commands:
- "/login"
- "/register"
- "/l"
- "/reg"
? Support & Community
Need help with configuration, or want to suggest a new feature? Join our Discord Server
GitHub Repository
⚙️ Step-by-Step Discord Bot Setup
Step 1: Create the Discord Application
- Go to the Discord Developer Portal
- Click New Application (top-right), name it (e.g., Server Logs), and click
Create.
Step 2: Retrieve Token & Enable Intents
- In the sidebar, select Bot.
- Click Reset Token and copy the generated key.
- Scroll down to Privileged Gateway Intents and enable Message Content Intent
(required for Discord buttons to read clicks). Click Save Changes.
Step 3: Invite the Bot to Your Server
- Go to OAuth2 -> URL Generator in the sidebar.
- Select bot under Scopes.
- Select Administrator under Bot Permissions (or View Channels, Send Messages,
and Embed Links).
- Copy the URL at the bottom, open it in your browser, and authorize the bot.
Step 4: Link to Minecraft
- Enable Developer Mode in Discord (User Settings -> Advanced).
- Right-click your desired logging channel and click Copy Channel ID.
- In-game, type /discordconfig -> Click Link Discord (Diamond) -> Left-click
Bot Token and paste it, then Left-click Channel ID and paste the ID. Your
bot is now connected!
评论 0
登录后参与评分
还没有评论,来抢沙发吧