No Enderman Spawns Whatsoever
No Enderman Spawns Whatsoever 是一款轻量级的 Minecraft 服务器插件,赋予管理员对末影人生成完全且实时的控制。与简单的开关不同,它提供全局切换和基于百分比的精细生成几率设置,让你可以将自然生成的末影人比例从 100% 逐步调低至 0%,步长为 1%。
为何选择此插件?
管理生物生成是服务器管理员的常见需求。虽然原版 Minecraft 提供了 /gamerule doMobSpawning 规则,但它会影响所有生物的全局生成。本插件通过仅针对末影人进行处理来解决这一问题,同时保持其他生物的生成不受影响。无论你是运行需要减少末影人干扰的小游戏服务器、希望降低其存在感的生存世界,还是认为它们纯属麻烦的创意建筑服务器,本插件都能为你提供所需的精确控制——而不影响任何其他内容。
功能
全局切换 – 使用单个命令(/endermanspawn on/off)启用或禁用所有自然末影人生成。
基于百分比的生成控制 – 将生成几率设置在 0% 到 100% 之间的任意值(/endermanspawn percent <0-100>)。在 100% 时,末影人以正常的原版速率生成。在 50% 时,只有半数自然生成尝试成功。在 0% 时,完全不生成。
持久化配置 – 所有设置自动保存至 config.yml,并在服务器重启后保留。
热重载 – 使用 /endermanspawn reload 可直接应用对配置文件所做的更改,无需重启服务器。
极小的性能影响 – 该插件使用单一事件监听器,没有计划任务、计时器或后台线程。它为服务器增加的开销几乎为零。
选择性生成过滤 – 默认情况下,插件仅拦截自然生成事件(来自世界生成、巡逻队和骑乘者的生成)。刷怪蛋、命令和刷怪笼生成的末影人不会被阻止,因此你保留了对手动放置末影人的完全控制权。
命令
| 命令 |
描述 |
权限 |
/endermanspawn on |
启用自然末影人生成 |
noendermanspawns.admin |
/endermanspawn off |
禁用自然末影人生成 |
noendermanspawns.admin |
/endermanspawn percent <0-100> |
设置生成几率百分比 |
noendermanspawns.admin |
/endermanspawn reload |
从 config.yml 重新加载配置 |
noendermanspawns.admin |
/endermanspawn (无参数) |
显示当前生成状态和百分比 |
noendermanspawns.admin |
别名:/enderman, /es
权限
| 权限节点 |
默认值 |
描述 |
noendermanspawns.admin |
OP |
允许使用所有 /endermanspawn 命令 |
配置 (config.yml)
# 是否全局启用末影人生成
enabled: true
# 启用时允许的末影人生成几率 (0-100)
percent: 100
配置文件在首次运行时自动生成。对其进行的任何更改均可使用 /endermanspawn reload 实时应用。
兼容性
本插件旨在兼容广泛的服务器实现和 Minecraft 版本:
服务器软件兼容性
| 服务器软件 |
兼容性 |
| Paper |
✅ 完全支持 |
| Purpur |
✅ 完全支持 |
| Pufferfish |
✅ 完全支持 |
| Spigot |
✅ 完全支持 |
| Bukkit |
✅ 完全支持 |
| Folia |
✅ 完全支持(通过 folia-supported: true 声明) |
Minecraft 版本兼容性
| 版本 |
兼容性 |
| 1.21.x (1.21 – 1.21.4) |
✅ 已测试 |
| 26.1, 26.1.1, 26.1.2, 26.2 |
✅ 已测试 |
该插件仅使用稳定且长期存在的 Bukkit/Paper API(如 CreatureSpawnEvent、Enderman 等),这些 API 在多个主要 Minecraft 版本中保持不变,确保了广泛的兼容性,无需频繁更新。
技术细节
Java 版本:使用 Java 25 编译(兼容 Java 21 及以上版本)
API 版本:基于 Paper API 1.21.4‑R0.1‑SNAPSHOT 构建
依赖项:无(纯 Bukkit/Paper API)
文件大小:约 5 KB
工作原理
当发生生物生成事件时,插件会检查:
它是末影人吗? – 如果不是,则忽略该事件。
生成原因是自然的吗? – 仅拦截 NATURAL、PATROL 和 JOCKEY 类型的生成。刷怪蛋、命令和刷怪笼不受影响。
生成是否启用? – 如果禁用,则取消生成。
概率是多少? – 生成一个 0 到 99 之间的随机数。如果该数字大于或等于配置的百分比,则取消生成。
这种方法确保插件行为可预测,且不干扰其他插件或服务器机制。
用例
小游戏服务器 – 防止末影人在比赛期间破坏或分散玩家注意力。
生存服务器 – 减少末影人生成以降低难度,而不完全移除它们。
创意/建筑服务器 – 完全禁用末影人,以防止意外偷取方块或破坏行为。
自定义地图测试 – 在地图开发过程中控制末影人生成,以测试特定场景。
No Enderman Spawns Whatsoever
No Enderman Spawns Whatsoever is a lightweight Minecraft server plugin that gives administrators complete, real‑time control over Enderman spawning. Instead of a simple on/off switch, it provides both a global toggle and a fine‑grained percentage‑based spawn chance, allowing you to dial natural Enderman spawns from 100% down to 0% in 1% increments.
Why This Plugin?
Managing mob spawns is a common need for server administrators. While vanilla Minecraft offers the /gamerule doMobSpawning rule, it affects all mobs globally. This plugin solves that by targeting only Endermen, leaving all other mob spawns untouched. Whether you're running a minigame server that needs to reduce Enderman interference, a survival world where you want to tone down their presence, or a creative build server where they're simply a nuisance, this plugin gives you the precise control you need—without affecting anything else.
Features
Global Toggle – Enable or disable all natural Enderman spawning with a single command (/endermanspawn on/off).
Percentage‑Based Spawn Control – Set the spawn chance anywhere from 0% to 100% (/endermanspawn percent <0-100>). At 100%, Endermen spawn at their normal vanilla rate. At 50%, only half of the natural spawn attempts succeed. At 0%, none spawn at all.
Persistent Configuration – All settings are automatically saved to config.yml and persist across server restarts.
Live Reload – Use /endermanspawn reload to apply changes made directly to the configuration file without restarting the server.
Minimal Performance Impact – The plugin uses a single event listener with no scheduled tasks, timers, or background threads. It adds virtually zero overhead to your server.
Selective Spawn Filtering – By default, the plugin only intercepts natural spawn events (spawns from world generation, patrols, and jockeys). Spawn eggs, commands, and spawner‑based spawns are not blocked, so you retain full control over manual Enderman placement.
Commands
Command Description Permission
/endermanspawn on Enables natural Enderman spawning noendermanspawns.admin
/endermanspawn off Disables natural Enderman spawning noendermanspawns.admin
/endermanspawn percent <0-100> Sets the spawn chance percentage noendermanspawns.admin
/endermanspawn reload Reloads the configuration from config.yml noendermanspawns.admin
/endermanspawn (no args) Displays the current spawning status and percentage noendermanspawns.admin
Aliases: /enderman, /es
Permissions
Permission Node Default Description
noendermanspawns.admin OP Allows use of all /endermanspawn commands
Configuration (config.yml)
yaml
Whether Enderman spawning is enabled globally
enabled: true
Chance (0-100) that an Enderman spawn is allowed when enabled
percent: 100
The configuration file is auto‑generated on first run. Any changes made to it can be applied live using /endermanspawn reload.
Compatibility
This plugin is designed to work across a wide range of server implementations and Minecraft versions:
Server Software Compatibility
Paper ✅ Fully supported
Purpur ✅ Fully supported
Pufferfish ✅ Fully supported
Spigot ✅ Fully supported
Bukkit ✅ Fully supported
Folia ✅ Fully supported (declared via folia-supported: true)
Minecraft Versions Compatibility
1.21.x (1.21 – 1.21.4) ✅ Tested
26.1, 26.1.1, 26.1.2, 26.2 ✅ Tested
The plugin uses only stable, long‑standing Bukkit/Paper APIs (CreatureSpawnEvent, Enderman, etc.) that have remained unchanged across multiple major Minecraft releases, ensuring broad compatibility without the need for frequent updates.
Technical Details
Java Version: Compiled with Java 25 (compatible with Java 21 and above)
API Version: Built against Paper API 1.21.4‑R0.1‑SNAPSHOT
Dependencies: None (pure Bukkit/Paper API)
File Size: ~5 KB
How It Works
When a creature spawn event occurs, the plugin checks:
Is it an Enderman? – If not, the event is ignored.
Is the spawn reason natural? – Only NATURAL, PATROL, and JOCKEY spawns are intercepted. Spawn eggs, commands, and spawners are left untouched.
Is spawning enabled? – If disabled, the spawn is cancelled.
What is the percentage? – A random number between 0 and 99 is generated. If it is greater than or equal to the configured percentage, the spawn is cancelled.
This approach ensures that the plugin behaves predictably and doesn't interfere with other plugins or server mechanics.
Use Cases
Minigame Servers – Prevent Endermen from griefing or distracting players during matches.
Survival Servers – Reduce Enderman spawns to lower difficulty without removing them entirely.
Creative / Build Servers – Completely disable Endermen to prevent accidental block theft or griefing.
Custom Map Testing – Control Enderman spawns during map development to test specific scenarios.
评论 0
登录后参与评分
还没有评论,来抢沙发吧