
xBlockerCommands
一款功能强大且灵活的 Minecraft 插件,用于在服务器上屏蔽命令。
? 描述
xBlocker 是一款 Spigot/Paper 插件,允许服务器管理员阻止玩家使用特定的命令。它具有灵活的配置系统、通配符支持以及直观的命令界面。
✨ 特性
- 屏蔽任意命令 - 防止玩家使用特定命令
- 通配符支持 - 使用
* 来屏蔽一组命令(例如 minecraft:*)
- 权限系统 - 通过权限绕过屏蔽限制
- 动态管理 - 无需编辑文件即可添加/移除被屏蔽的命令
- 自定义消息 - 完全支持颜色代码
- 日志系统 - 记录尝试执行被屏蔽命令的行为
- Tab 补全 - 方便命令的使用
- 轻量级 - 对性能影响极小
? 安装
- 从发布页面下载最新的
xBlocker.jar
- 将文件放入服务器的
plugins/ 文件夹中
- 重启服务器
- 在
plugins/xBlocker/config.yml 中配置插件
- 使用
/xb reload 应用更改
? 要求
- Minecraft 1.17 或更高版本
- Spigot、Paper 或任何兼容的服务端软件
- Java 16 或更高版本
? 命令
| 命令 |
描述 |
权限 |
/xb reload |
重载配置 |
xblocker.reload |
/xb list |
列出所有被屏蔽的命令 |
xblocker.admin |
/xb add <command> |
将命令添加到屏蔽列表 |
xblocker.admin |
/xb remove <command> |
从屏蔽列表中移除命令 |
xblocker.admin |
别名: /xblocker, /xb, /blocker
? 权限
| 权限 |
描述 |
默认值 |
xblocker.admin |
拥有插件的全部访问权限 |
OP |
xblocker.bypass |
绕过所有命令屏蔽 |
OP |
xblocker.reload |
重载配置 |
OP |
⚙️ 配置
# 被屏蔽的命令列表
blocked-commands:
- "op"
- "deop"
- "stop"
- "reload"
- "minecraft:give"
- "plugins"
- "pl"
- "version"
- "ver"
# 插件消息
messages:
blocked-command: "&c&l拒绝访问!&7此命令已被屏蔽。"
no-permission: "&c你没有权限使用此命令。"
reload-success: "&a配置已成功重载!"
command-added: "&a命令已添加到屏蔽列表。"
command-removed: "&a命令已从屏蔽列表中移除。"
# 启用被屏蔽命令尝试的日志记录
enable-logging: true
? 使用示例
屏蔽单个命令
/xb add gamemode
屏蔽命名空间下的所有命令
/xb add minecraft:*
移除被屏蔽的命令
/xb remove gamemode
查看所有被屏蔽的命令
/xb list
重载配置
/xb reload
? 贡献
欢迎贡献!请随时提交 Pull Request。
? 许可证
本项目采用 MIT 许可证授权。
? Bug 报告
如果发现 bug,请在 GitHub 上开启一个 Issue,并包含以下内容:
- Minecraft 版本
- 服务端软件及版本
- 插件版本
- 复现步骤
- 错误日志(如有)

xBlockerCommands
A powerful and flexible Minecraft plugin to block commands on your server.
? Description
xBlocker is a Spigot/Paper plugin that allows server administrators to block specific commands from being used by players. It features a flexible configuration system, wildcard support, and an intuitive command interface.
✨ Features
- Block any command - Prevent players from using specific commands
- Wildcard support - Use
* to block groups of commands (e.g., minecraft:*)
- Permission system - Bypass blocks with permissions
- Dynamic management - Add/remove blocked commands without editing files
- Customizable messages - Full color code support
- Logging system - Track blocked command attempts
- Tab completion - Easy command usage
- Lightweight - Minimal performance impact
? Installation
- Download the latest
xBlocker.jar from releases
- Place the file in your server's
plugins/ folder
- Restart your server
- Configure the plugin in
plugins/xBlocker/config.yml
- Use
/xb reload to apply changes
? Requirements
- Minecraft 1.17 or higher
- Spigot, Paper, or any compatible server software
- Java 16 or higher
? Commands
| Command |
Description |
Permission |
/xb reload |
Reload the configuration |
xblocker.reload |
/xb list |
List all blocked commands |
xblocker.admin |
/xb add <command> |
Add a command to the block list |
xblocker.admin |
/xb remove <command> |
Remove a command from the block list |
xblocker.admin |
Aliases: /xblocker, /xb, /blocker
? Permissions
| Permission |
Description |
Default |
xblocker.admin |
Full access to the plugin |
OP |
xblocker.bypass |
Bypass all command blocks |
OP |
xblocker.reload |
Reload the configuration |
OP |
⚙️ Configuration
# List of blocked commands
blocked-commands:
- "op"
- "deop"
- "stop"
- "reload"
- "minecraft:give"
- "plugins"
- "pl"
- "version"
- "ver"
# Plugin messages
messages:
blocked-command: "&c&lAccess Denied! &7This command is blocked."
no-permission: "&cYou don't have permission to use this command."
reload-success: "&aConfiguration reloaded successfully!"
command-added: "&aCommand added to the block list."
command-removed: "&aCommand removed from the block list."
# Enable logging of blocked command attempts
enable-logging: true
? Usage Examples
Block a single command
/xb add gamemode
Block all commands from a namespace
/xb add minecraft:*
Remove a blocked command
/xb remove gamemode
View all blocked commands
/xb list
Reload configuration
/xb reload
? Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
? License
This project is licensed under the MIT License.
? Bug Reports
If you find a bug, please open an issue on GitHub with:
- Minecraft version
- Server software and version
- Plugin version
- Steps to reproduce
- Error logs (if any)
评论 0
登录后参与评分
还没有评论,来抢沙发吧