RestrictMob
保护你的世界。阻止生物进入。
RestrictMob 是一款轻量级、高性能的插件,允许服务器管理员定义安全区,在该区域内敌对和中立生物无法生成或进入。
专为 Paper 1.21+ 和 Java 21 构建。完全基于事件驱动,零每刻钟开销。
功能
- 区域创建 – 使用法杖物品选择两个角点,即可创建命名矩形区域。
- 生成阻止 – 阻止所有敌对和中立生物在区域内生成,包括自然生成、刷怪笼、蛋以及自定义来源。
- 进入阻止 – 防止生物步行或传送进入受保护的区域。
- 击退效果 – 尝试跨越区域边界的生物会被推回。强度可完全配置。
- 异步持久化 – 区域数据异步保存。主服务器线程无文件 I/O 操作。
- 完全可配置 – 法杖物品、检测半径、击退倍数、传送阻止以及消息均可自定义。
要求
- 服务器: Paper 1.21+(或兼容分支如 Purpur)
- Java: 21 或更高版本
安装
- 下载或编译插件
.jar 文件。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启(或重载)服务器。
命令与用法
所有命令都需要 titanzones.admin 权限 (默认:OP)。
| 命令 |
描述 |
/zones wand |
给你选择用的法杖。 |
/zones create <name> |
根据你选定的位置创建一个区域。 |
/zones delete <name> |
删除一个现有区域。 |
/zones list |
列出所有活动区域。 |
如何创建区域
- 运行
/zones wand 以获取选择工具。
- 左键点击 一个方块以设置位置 1。
- 右键点击 一个方块以设置位置 2。
- 运行
/zones create <name> 以完成区域创建。
两个位置必须位于同一个世界中。
配置
所有设置均可在 config.yml 中调整:
wand-item: BLAZE_ROD
check-radius: 5.0
knockback-multiplier: 1.5
block-teleport: true
RestrictMob
Protect your world. Keep mobs out.
RestrictMob is a lightweight, high-performance plugin that allows server administrators to define Safe Zones where hostile and neutral mobs cannot spawn or enter.
Built for Paper 1.21+ with Java 21. Fully event-driven with zero per-tick overhead.
Features
- Zone Creation – Select two corners with a wand item to create named rectangular zones.
- Spawn Prevention – Blocks all hostile and neutral mob spawns inside zones, including natural, spawner, egg, and custom sources.
- Entry Prevention – Prevents mobs from walking or teleporting into protected zones.
- Knockback – Mobs attempting to cross a zone boundary are pushed back. Strength is fully configurable.
- Async Persistence – Zones are saved asynchronously. No file I/O on the main server thread.
- Fully Configurable – Wand item, check radius, knockback multiplier, teleport blocking, and messages are all customizable.
Requirements
- Server: Paper 1.21+ (or compatible forks like Purpur)
- Java: 21 or newer
Installation
- Download or build the plugin
.jar file.
- Place it in your server's
plugins/ folder.
- Restart (or reload) the server.
Commands & Usage
All commands require the titanzones.admin permission (default: OP).
| Command |
Description |
/zones wand |
Gives you the selection wand. |
/zones create <name> |
Creates a zone from your selected positions. |
/zones delete <name> |
Deletes an existing zone. |
/zones list |
Lists all active zones. |
How to Create a Zone
- Run
/zones wand to receive the selection tool.
- Left-click a block to set Position 1.
- Right-click a block to set Position 2.
- Run
/zones create <name> to finalize the zone.
Both positions must be in the same world.
Configuration
All settings can be adjusted in config.yml:
wand-item: BLAZE_ROD
check-radius: 5.0
knockback-multiplier: 1.5
block-teleport: true
评论 0
登录后参与评分
还没有评论,来抢沙发吧