
# ItemFrameController
**ItemFrameController** 是一个适用于 Spigot/Paper 1.16.x - 1.21.1 的 Minecraft 插件,它为在指定世界中玩家与物品框交互提供精确的控制。 非常适合保护自定义构建、博物馆区域、冒险地图,或仅仅增强服务器安全。
## 🎯 功能
- 🚫 阻止玩家在潜行时旋转物品框。
- 🚫 除非在创造模式下,否则阻止玩家将物品放入物品框。
- 🛡️ 阻止玩家或实体破坏物品框。
- 🛠️ 限制物品框放置。
- 🌍 将功能限制到特定世界。
- 💬 为每个阻止的操作提供自定义消息。
## ⚙️ 配置
该插件使用 YAML 配置文件,结构如下:
```yaml
restricted-worlds:
- world
- custom_world
prevent-rotation: true
prevent-placing-items: true
prevent-knocking-by-player: true
prevent-knocking-by-entity: true
prevent-placing-frames: true
messages:
rotation: "§c你不能在这个世界旋转物品框!"
placing-items: "§c你不能在这里将物品放入物品框!"
knocking-by-player: "§c你不能在这里破坏物品框!"
knocking-by-entity: "§c实体不能摧毁这里的物品框!"
placing-frames: "§c你不能在这个世界放置物品框!"
```