EnderBan
EnderBan 是一款轻量且高性能的服务器插件,可阻止玩家将配置好的物品存入其末影箱中。
管理员可以在 config.yml 中定义一个被禁止的 Minecraft 材质列表。当玩家尝试将被禁物品放入末影箱时,EnderBan 会自动取消该操作并将物品返还给玩家。如果玩家的背包已满,物品则会掉落在其脚下。
功能
配置
lang 设置控制 EnderBan 面向玩家消息所使用的语言。
支持的语言:
en — 英语
ru — 俄语
es — 西班牙语
如果输入了不支持的值,EnderBan 会自动回退到英语。
被禁物品列表包含不允许玩家存入末影箱的 Minecraft Material 名称。在此列表中添加您想要阻止的材质,例如 BEDROCK、COMMAND_BLOCK 或 BARRIER。
工作原理
EnderBan 监听末影箱的背包交互事件,并检查正在插入的物品是否与配置的被禁材质之一匹配。
检测到被禁物品时:
- 取消背包操作。
- 将物品返还给玩家。
- 如果玩家背包已满,物品会在附近掉落。
- 发送本地化消息告知玩家该操作不被允许。
插件默认执行简单的 ItemStack#getType() 比较,以确保检查速度快且结果可预测。
命令
/ebreload — 重新加载 EnderBan 配置。
权限
正常运行不需要任何特殊权限。
兼容性
EnderBan 专为现代 Minecraft 服务器环境设计,旨在提供轻量级的保护功能,且不包含不必要的依赖项。
在可能的情况下,该插件旨在通过单一分发版本支持多个现代服务器版本和插件平台。
性能
EnderBan 有意保持极简。它仅执行防止被禁材质被放入末影箱所必需的检查,不会持续扫描背包或运行不必要的后台任务。
未来开发
该项目正在扩展以提供更广泛的 Minecraft 版本兼容性,并支持更多的服务器插件平台,同时保持插件的轻量级和易于配置的特点。
EnderBan
EnderBan is a lightweight and performant server plugin that prevents players from storing configured items in their Ender Chests.
Administrators can define a list of blocked Minecraft materials in config.yml. When a player attempts to put a blocked item into an Ender Chest, EnderBan automatically cancels the action and returns the item to the player. If their inventory is full, the item is dropped at their feet instead.
Features
-
Prevents configured items from being placed into Ender Chests.
-
Supports common inventory interactions:
- Normal clicks
- Shift-clicks
- Dragging items
- Hotbar number-key swaps
-
Safely returns blocked items to the player.
-
Drops items at the player's feet when their inventory is full.
-
Configurable blocked item list using standard Minecraft Material names.
-
Built-in localization with English, Russian, and Spanish.
-
Language can be changed directly in config.yml.
-
Defaults to English if an invalid language is specified.
-
/ebreload command for reloading the configuration without restarting the server.
-
Lightweight, dependency-free, and designed with performance in mind.
Configuration
The lang setting controls the language used for EnderBan's player-facing messages.
Supported languages:
en — English
ru — Russian
es — Spanish
If an unsupported value is entered, EnderBan automatically falls back to English.
The blocked items list contains Minecraft Material names that players are not allowed to store in Ender Chests. Add the materials you want to prevent to this list, for example BEDROCK, COMMAND_BLOCK, or BARRIER.
How It Works
EnderBan listens for Ender Chest inventory interactions and checks whether an item being inserted matches one of the configured blocked materials.
When a blocked item is detected:
- The inventory action is canceled.
- The item is returned to the player.
- If the player's inventory is full, the item is dropped nearby.
- A localized message informs the player that the action is not allowed.
The plugin intentionally performs a simple ItemStack#getType() comparison by default, keeping the checks fast and predictable.
Commands
/ebreload — Reloads the EnderBan configuration.
Permissions
No special permissions are required for normal operation.
Compatibility
EnderBan is designed for modern Minecraft server environments and focuses on providing the same lightweight protection without unnecessary dependencies.
The plugin is intended to support multiple modern server versions and plugin platforms in a single distribution where possible.
Performance
EnderBan is intentionally minimal. It performs only the checks necessary to prevent blocked materials from being placed into Ender Chests and does not continuously scan inventories or run unnecessary background tasks.
Future Development
The project is being expanded with broader Minecraft version compatibility and support for additional server plugin platforms, while keeping the plugin lightweight and easy to configure.
评论 0
登录后参与评分
还没有评论,来抢沙发吧