? PotionFilter
对 Minecraft 服务器上状态效果的分布方式拥有绝对控制权。PotionFilter 是一款轻量级、高度灵活且细粒度的解决方案,专为那些需要超越简单“开启/关闭”药水开关的服务端管理员设计。
无论您是想通过禁用可饮用的力量 II 药水(同时保留喷溅型药水)来平衡 PvP 环境,还是想完全阻止像试炼威光或黏液这样的 1.21 新增效果,PotionFilter 都能让您自定义每一种情况。
✨ 特性
细粒度分发控制:决定如何拦截某种效果。可以针对以下每种分发方式单独切换规则:
? 饮用(普通药水)
? 喷溅(喷溅型药水)
☁️ 滞留(滞留云)
? 箭矢(弓/弩投射物)
按效果定制: 支持截至 1.21.1+ 版本的所有 Minecraft 状态效果,包括最新的棘手试炼和不祥事件相关效果。
轻量级与高性能: 基于现代 EntityPotionEffectEvent API 构建。插件直接检查效果的来源,确保零服务器延迟或性能开销。
智能过滤: 绕过非药水来源。自然游戏机制如信标、食用苹果或管理员命令 (/effect) 将继续正常工作,除非它们源自药水工具。
⚙️ 配置 (config.yml)
配置文件非常直观。只需以大写字母列出效果名称,并将分发方法设置为 true 以进行拦截,或设置为 false 以允许其生效:
YAML
-
PotionFilter 配置
-
true = 已拦截(该效果不会通过此方式应用)
-
false = 已放行(效果正常运行)
-
effects:
- STRENGTH:
- drink: true
- splash: false
- lingering: false
- tipped_arrow: false
- SPEED:
- drink: false
- splash: true
- lingering: false
- tipped_arrow: false
? 安装
下载 PotionFilter.jar 文件。
将该文件放入服务器的 plugins 文件夹中。
重启或启动服务器以生成默认的 config.yml。
打开 plugins/PotionFilter/config.yml,根据您的喜好调整开关,然后重启服务器以应用更改!
? 兼容性
支持版本:Minecraft 1.21 及更高版本。
软件类型:Spigot、Paper、Purpur 以及所有其他 Paper 分支。
? PotionFilter
Take absolute control over how status effects are distributed on your Minecraft server. PotionFilter is a lightweight, highly flexible, and granular solution designed for server administrators who need more than just a simple "enable/disable" switch for potions.
Whether you want to balance your PvP meta by disabling drinkable Strength II potions while keeping splash potions enabled, or completely block specific newer 1.21 effects like Trial Omen or Oozing, PotionFilter allows you to customize every single scenario.
✨ Features
Granular Delivery Control: Decide how an effect is blocked. Toggle individual rules for:
? Drinking (Normal Potions)
? Splash (Splash Potions)
☁️ Lingering (Area Effect Clouds)
? Tipped Arrows (Bow/Crossbow projectiles)
Per-Effect Customization: Every single Minecraft status effect up to version 1.21.1+ is supported, including the latest Tricky Trials and Ominous Event effects.
Lightweight & High-Performance: Built on the modern EntityPotionEffectEvent API. The plugin checks the source of the effect directly, ensuring zero server lag or performance overhead.
Smart Filtering: Bypasses non-potion sources. Natural game mechanics like Beacons, Apple consumption, or Admin Commands (/effect) will continue to work perfectly unless they originate from a potion tool.
⚙️ Configuration (config.yml)
The configuration is incredibly intuitive. Simply list the effect in uppercase and set the delivery method to true to block it, or false to allow it:
YAML
-
PotionFilter Configuration
-
true = Blocked (Effect will NOT be applied via this method)
-
false = Allowed (Effect works normally)
-
effects:
- STRENGTH:
- drink: true
- splash: false
- lingering: false
- tipped_arrow: false
- SPEED:
- drink: false
- splash: true
- lingering: false
- tipped_arrow: false
? Installation
Download the PotionFilter.jar file.
Drop the file into your server's plugins folder.
Restart or start your server to generate the default config.yml.
Open plugins/PotionFilter/config.yml, adjust the toggles to your liking, and restart the server to apply the changes!
? Compatibility
Supported Versions: Minecraft 1.21 and higher.
Software: Spigot, Paper, Purpur, and any other Paper forks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧