EnchantmentLimiter
EnchantmentLimiter 是一款轻量级且可配置的 Minecraft 插件,允许服务器管理员 限制特定附魔的最高等级。
它通过防止附魔超过配置等级来帮助平衡游戏玩法,例如限制 Sharpness、Protection、Efficiency 或任何其他附魔的等级。
该插件旨在保持 简单、完全可配置 和 对服务器友好,同时支持常见的附魔工作流,如附魔台、铁砧和附魔书。
主要功能
附魔等级限制
每个配置的附魔都可以设置一个 允许的最高等级。
如果玩家尝试获得高于该等级的附魔:
- 附魔将被 自动降低
- 玩家将收到一条 可自定义的反馈消息
示例用法:
- 将 Sharpness 限制为 3
- 将 Protection 限制为 3
- 将 Efficiency 限制为 4
- 将 Unbreaking 限制为 2
附魔台与铁砧支持
EnchantmentLimiter 支持多种玩家获取附魔的方式:
| 来源 |
描述 |
| 附魔台 |
降低来自普通附魔结果的附魔 |
| 铁砧 |
降低通过铁砧合成产生的附魔 |
| 附魔书 |
支持存储在附魔书中的附魔 |
这有助于防止玩家通过不同的原版机制绕过配置的附魔限制。
豁免权限
可以为特定玩家或组授予豁免权限。
拥有此权限的玩家将完全不受附魔限制的影响:
enchantmentlimiter.bypass
默认情况下,此权限 不会自动授予。
完全可配置
该插件使用简单的附魔名称和 JSON 配置文件。
示例配置:
{
"enchantments": {
"sharpness": 3,
"protection": 3,
"efficiency": 3,
"unbreaking": 3
}
}
你可以使用简单的名称,例如:
sharpness
aqua_affinity
fire_aspect
Minecraft 命名空间键(如 minecraft:sharpness)也仍然受支持。
可自定义消息
所有插件消息均可通过翻译文件进行编辑。
结构如下:
plugins/EnchantmentLimiter/
config.json
translations/
messages.json
示例反馈消息:
{
"enchantment_lowered": "%prefix%§f%enchantment% §ehas been lowered from §f%old_level%§e to §f%level%§e!"
}
游戏内消息示例:
Sharpness has been lowered from 5 to 3!
热重载支持
你可以在不重启服务器的情况下重新加载配置和翻译文件。
/enchantmentlimiter reload
如果配置文件缺失,插件将 自动重新创建它们。
命令
| 命令 |
描述 |
/enchantmentlimiter help |
显示所有插件命令 |
/enchantmentlimiter list [page] |
列出配置的附魔限制 |
/enchantmentlimiter info <enchantment> |
显示有关某个附魔的信息 |
/enchantmentlimiter add <enchantment> <level> |
添加新的附魔限制 |
/enchantmentlimiter edit <enchantment> <level> |
编辑现有的附魔限制 |
/enchantmentlimiter remove <enchantment> |
移除附魔限制 |
/enchantmentlimiter reload |
重新加载插件配置 |
别名:
/elim
权限
| 权限 |
描述 |
默认值 |
enchantmentlimiter.help |
允许使用 /enchantmentlimiter help |
true |
enchantmentlimiter.list |
允许使用 /enchantmentlimiter list |
op |
enchantmentlimiter.info |
允许使用 /enchantmentlimiter info |
op |
enchantmentlimiter.reload |
允许使用 /enchantmentlimiter reload |
op |
enchantmentlimiter.add |
允许添加附魔限制 |
op |
enchantmentlimiter.edit |
允许编辑附魔限制 |
op |
enchantmentlimiter.remove |
允许移除附魔限制 |
op |
enchantmentlimiter.bypass |
绕过所有附魔限制 |
false |
enchantmentlimiter.update.notify |
允许接收更新通知 |
op |
为什么使用 EnchantmentLimiter?
许多服务器希望在不完全禁用附魔的情况下保持附魔的平衡。
常见示例包括:
- 防止过强的 PvP 附魔等级
- 限制 Protection 叠加
- 减少 Sharpness 伤害缩放
- 使工具实用但不过于强大
- 平衡自定义生存或 PvP 进度
EnchantmentLimiter 提供了一种简洁的方式来控制附魔强度,同时保留原版的附魔机制。
兼容性
- Minecraft 1.21+
- Spigot / Paper
- 轻量级,对性能影响极小
示例用法
服务器常限制的常见附魔:
sharpness
protection
efficiency
unbreaking
power
punch
fire_aspect
aqua_affinity
fortune
looting
mending
配置理念
EnchantmentLimiter 的设计目标是:
由你决定 限制哪些附魔 以及 每个附魔可达到的最高等级。
支持
如果遇到任何问题或有功能建议,欢迎在 Discord 服务器中提交工单。
享受为你的服务器提供一个平衡且可控的附魔系统。
EnchantmentLimiter
EnchantmentLimiter is a lightweight and configurable Minecraft plugin that allows server owners to limit the maximum level of specific enchantments.
It helps balance gameplay by preventing enchantments from going above configured levels, such as limiting Sharpness, Protection, Efficiency, or any other enchantment.
The plugin is designed to be simple, fully configurable, and server-friendly, while still supporting common enchanting workflows like enchanting tables, anvils, and enchanted books.
Key Features
Enchantment Level Limits
Each configured enchantment can have a maximum allowed level.
If a player attempts to receive an enchantment above that level:
- the enchantment will be automatically lowered
- the player will receive a customizable feedback message
Example use cases:
- Limit Sharpness to 3
- Limit Protection to 3
- Limit Efficiency to 4
- Limit Unbreaking to 2
Enchanting And Anvil Support
EnchantmentLimiter supports multiple ways players receive enchantments:
| Source |
Description |
| Enchanting table |
Lowers enchantments from normal enchanting results |
| Anvils |
Lowers enchantments created through anvil combining |
| Enchanted books |
Supports stored enchantments on enchanted books |
This helps prevent players from bypassing configured enchantment limits through different vanilla mechanics.
Bypass Permission
Specific players or groups can be given a bypass permission.
Players with this permission will completely bypass enchantment limits:
enchantmentlimiter.bypass
By default, this permission is not granted automatically.
Fully Configurable
The plugin uses simple enchantment names and JSON configuration.
Example config:
{
"enchantments": {
"sharpness": 3,
"protection": 3,
"efficiency": 3,
"unbreaking": 3
}
}
You can use simple names like:
sharpness
aqua_affinity
fire_aspect
Minecraft namespaced keys such as minecraft:sharpness are also still supported.
Customizable Messages
All plugin messages can be edited through the translations file.
Structure:
plugins/EnchantmentLimiter/
config.json
translations/
messages.json
Example feedback message:
{
"enchantment_lowered": "%prefix%§f%enchantment% §ehas been lowered from §f%old_level%§e to §f%level%§e!"
}
Example in-game message:
Sharpness has been lowered from 5 to 3!
Hot Reload Support
You can reload the configuration and translation files without restarting the server.
/enchantmentlimiter reload
If configuration files are missing, the plugin will automatically recreate them.
Commands
| Command |
Description |
/enchantmentlimiter help |
Displays all plugin commands |
/enchantmentlimiter list [page] |
Lists configured enchantment limits |
/enchantmentlimiter info <enchantment> |
Shows information about an enchantment |
/enchantmentlimiter add <enchantment> <level> |
Adds a new enchantment limit |
/enchantmentlimiter edit <enchantment> <level> |
Edits an existing enchantment limit |
/enchantmentlimiter remove <enchantment> |
Removes an enchantment limit |
/enchantmentlimiter reload |
Reloads plugin configuration |
Alias:
/elim
Permissions
| Permission |
Description |
Default |
enchantmentlimiter.help |
Allows /enchantmentlimiter help |
true |
enchantmentlimiter.list |
Allows /enchantmentlimiter list |
op |
enchantmentlimiter.info |
Allows /enchantmentlimiter info |
op |
enchantmentlimiter.reload |
Allows /enchantmentlimiter reload |
op |
enchantmentlimiter.add |
Allows adding enchantment limits |
op |
enchantmentlimiter.edit |
Allows editing enchantment limits |
op |
enchantmentlimiter.remove |
Allows removing enchantment limits |
op |
enchantmentlimiter.bypass |
Bypasses all enchantment limits |
false |
enchantmentlimiter.update.notify |
Allows receiving update notifications |
op |
Why Use EnchantmentLimiter?
Many servers want to keep enchantments balanced without disabling enchanting completely.
Common examples include:
- Preventing overpowered PvP enchantment levels
- Limiting Protection stacking
- Reducing Sharpness damage scaling
- Keeping tools useful without making them too strong
- Balancing custom survival or PvP progression
EnchantmentLimiter provides a clean way to control enchantment power while keeping vanilla enchanting mechanics available.
Compatibility
- Minecraft 1.21+
- Spigot / Paper
- Lightweight with minimal performance impact
Example Use Cases
Common enchantments servers limit:
sharpness
protection
efficiency
unbreaking
power
punch
fire_aspect
aqua_affinity
fortune
looting
mending
Configuration Philosophy
EnchantmentLimiter is designed to be:
- Simple
- Readable
- Server-friendly
You decide which enchantments are limited and what maximum level each enchantment may reach.
Support
If you encounter issues or have feature requests, feel free to open a ticket in the Discord server.
Enjoy a balanced and controlled enchanting system for your server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧