━━━━━━━━━━━━━━━━━━━━
PASTA'S COMMAND BLOCKER
━━━━━━━━━━━━━━━━━━━━
概述
PastasCommandBlocker 是一款轻量级且高度可配置的命令过滤插件,旨在赋予服务器管理员完全的控制权,决定玩家可以使用哪些命令和子命令。它充当一个高级的命令白名单/黑名单系统,支持权限、自定义消息、音效以及细粒度的命令规则。
该插件专为生存服、练习服和网络服设计,旨在防止敏感命令被滥用,同时保持高度的可配置性。
前置要求
Paper 或兼容分支(推荐 1.20 - 1.21+)
目录
- 功能特性
- 命令
- 权限节点
- 配置
- 安装
- 鸣谢
- 许可证
━━━━━━━━━━━━━━━━━━━━
功能特性
━━━━━━━━━━━━━━━━━━━━
- 命令白名单系统:仅允许特定的命令或子命令
- 子命令控制:阻止或允许单个命令参数
- 权限绕过系统:允许工作人员绕过限制
- 完全可配置的消息:带有占位符的自定义拒绝消息
- 音效支持:在命令被阻止时播放可配置的音效
- 灵活的规则系统:为每个命令或组定义规则
- 轻量级设计:对性能影响极小
- 实时配置重载:无需重启服务器即可应用更改
━━━━━━━━━━━━━━━━━━━━
命令
━━━━━━━━━━━━━━━━━━━━
/pcommandblocker reload - 重载配置文件
/pcommandblocker toggle - 启用或禁用命令阻止系统
/pcommandblocker status - 查看插件状态
━━━━━━━━━━━━━━━━━━━━
权限节点
━━━━━━━━━━━━━━━━━━━━
pastascommandblocker.admin - 访问所有管理命令
pastascommandblocker.bypass - 绕过所有命令限制
pastascommandblocker.notify - 接收命令阻止警报
━━━━━━━━━━━━━━━━━━━━
配置
━━━━━━━━━━━━━━━━━━━━
命令系统
commands.<command>.enabled - 启用或禁用命令过滤
commands.<command>.subcommands - 允许或阻止的子命令列表
commands.<command>.message - 自定义拒绝消息
commands.<command>.sound - 被阻止时播放的音效
常规设置
global.bypass-permission - 绕过所有检查的权限
global.block-unknown-commands - 阻止配置中未列出的命令
global.message-type - chat(聊天栏)、actionbar(动作栏)或两者皆有
━━━━━━━━━━━━━━━━━━━━
安装
━━━━━━━━━━━━━━━━━━━━
- 下载插件 jar 文件
- 将其放入你的
plugins 文件夹
- 重启服务器
- 编辑
config.yml 以定义允许的命令
- 运行
/pcommandblocker reload
━━━━━━━━━━━━━━━━━━━━
鸣谢
━━━━━━━━━━━━━━━━━━━━
由 pastosjava 创建
━━━━━━━━━━━━━━━━━━━━
许可证
━━━━━━━━━━━━━━━━━━━━
除非另有说明,否则保留所有权利。
━━━━━━━━━━━━━━━━━━━━
PASTA'S COMMAND BLOCKER
━━━━━━━━━━━━━━━━━━━━
Overview
PastasCommandBlocker is a lightweight and highly configurable command filtering plugin designed to give server owners full control over which commands and subcommands players can use. It acts as an advanced command whitelist/blacklist system with support for permissions, custom messages, sounds, and fine-grained command rules.
The plugin is designed for survival, practice, and network servers that want to prevent abuse of sensitive commands while maintaining full configurability.
Prerequisites
Paper or compatible forks (1.20 - 1.21+ recommended)
Table of Contents
Features
Commands
Permission Nodes
Configuration
Installation
Credits
License
━━━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━━━
- Command Whitelist System: Only allow specific commands or subcommands
- Subcommand Control: Block or allow individual command arguments
- Permission Bypass System: Allow staff to bypass restrictions
- Fully Configurable Messages: Custom deny messages with placeholders
- Sound Support: Play configurable sounds on blocked commands
- Flexible Rules System: Define rules per command or group
- Lightweight Design: Minimal performance impact
- Real-Time Config Reload: Apply changes without restarting server
━━━━━━━━━━━━━━━━━━━━
COMMANDS
━━━━━━━━━━━━━━━━━━━━
/pcommandblocker reload - Reload the configuration
/pcommandblocker toggle - Enable or disable command blocking system
/pcommandblocker status - View plugin status
━━━━━━━━━━━━━━━━━━━━
PERMISSION NODES
━━━━━━━━━━━━━━━━━━━━
pastascommandblocker.admin - Access to all admin commands
pastascommandblocker.bypass - Bypass all command restrictions
pastascommandblocker.notify - Receive command block alerts
━━━━━━━━━━━━━━━━━━━━
CONFIGURATION
━━━━━━━━━━━━━━━━━━━━
Commands System
commands.<command>.enabled - Enable or disable command filtering
commands.<command>.subcommands - List of allowed or blocked subcommands
commands.<command>.message - Custom denial message
commands.<command>.sound - Sound played when blocked
General Settings
global.bypass-permission - Permission that bypasses all checks
global.block-unknown-commands - Block commands not listed in config
global.message-type - chat, actionbar, or both
━━━━━━━━━━━━━━━━━━━━
INSTALLATION
━━━━━━━━━━━━━━━━━━━━
- Download the plugin jar
- Place it in your plugins folder
- Restart your server
- Edit config.yml to define allowed commands
- Run /pcommandblocker reload
━━━━━━━━━━━━━━━━━━━━
CREDITS
━━━━━━━━━━━━━━━━━━━━
Created by pastosjava
━━━━━━━━━━━━━━━━━━━━
LICENSE
━━━━━━━━━━━━━━━━━━━━
All rights reserved unless otherwise stated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧