? WorldResetter
一个极简的 Paper 插件,在每次服务器启动时删除主世界文件夹,并根据可配置的种子、类型、游戏规则、时间、天气以及 Paper 特有的性能调优创建一个新的世界。
⚙️ 工作原理
在每次启动时(在世界加载之前),WorldResetter 会删除 world 文件夹,然后使用你配置好的种子和世界类型,通过 Bukkit.createWorld() 以编程方式创建一个新的主世界。
它还会应用你设置的游戏规则、时间、天气以及每个世界的性能设置,并将种子和出生点保护半径写入 server.properties。
ℹ️ world_nether 和 world_the_end 不会被修改。
? 设计初衷
专为熔岩上升小游戏服务器构建,旨在让每一局比赛都感觉不同。与其反复游玩同一张地图,不如在每次服务器重启时重置世界——为玩家提供全新的地形。
? 命令
| 命令 |
描述 |
? /wr toggle |
切换世界重置功能的开/关状态 |
✅ /wr toggle on |
在下次启动时启用世界重置 |
❌ /wr toggle off |
在下次启动时禁用世界重置 |
ℹ️ /wr settings info |
显示当前设置 |
? /wr settings seed <seed|random> |
设置世界种子(或随机) |
?️ /wr settings worldtype <type> |
⚠️ 目前处于维护中 — 已禁用 |
? /wr settings gamerule <rule> <value> |
设置游戏规则 |
? /wr settings gamerule list |
列出已配置的游戏规则 |
? /wr settings gamerule reset |
清除所有游戏规则 |
☀️ /wr settings time <day|night|0-24000> |
设置世界时间 |
⛈️ /wr settings weather <clear|rain|thunder> |
设置天气 |
?️ /wr settings spawnprotection <radius> |
设置出生点保护半径 |
?️ /wr settings viewdistance <2-32|default> |
设置此世界的视距(仅限 Paper) |
? /wr settings simulationdistance <2-32|default> |
设置此世界的模拟距离(仅限 Paper) |
?️ /wr settings structures <true|false> |
切换结构生成(村庄、要塞等) |
♻️ /wr settings reset |
将所有设置重置为默认值 |
? /wr version |
显示当前版本与最新可用版本 |
? /wr version update |
从 Modrinth 下载并应用最新版本 |
别名: 可以使用 /worldresetter 代替 /wr
权限: worldresetter.admin(默认:op)
?️ 配置文件 (config.yml)
enabled: false
settings:
seed: ''
world-type: 'normal'
time: -1
weather: ''
spawn-protection: -1
view-distance: -1
simulation-distance: -1
generate-structures: true
gamerules: {}
? 依赖要求
- ☕ Java 21+
- ? Paper 或其分支(例如 Purpur)— 推荐 1.21.11+
⚠️ 不兼容原版 Spigot 或 CraftBukkit — 请参阅下方的 平台支持。
? 平台支持
WorldResetter 使用 Paper Plugin 系统(而非 Bukkit 的 plugin.yml),仅在 Paper 及基于 Paper 的服务器(如 Purpur)上运行 — 它在普通的 Spigot 或 CraftBukkit 上无法工作。
这不是 bug,而是有意为之:该插件的部分功能(如按世界设置的视距和现代命令 API)在非 Paper 环境下根本不存在。如果你的服务器运行的是 Purpur,则没有问题 — Purpur 基于 Paper 构建,因此一切运作正常。
? 性能优化
该插件执行以下几项操作以保持服务器流畅运行:
- ⚡ 更快的重启速度 — 过去删除旧世界是逐个文件进行的,在大地图上可能需要很长时间。现在它利用多个 CPU 核心一次性删除所有内容,使服务器重启速度快得多 — 在 SSD/NVMe 驱动器上尤为明显。
- ? 降低单个世界的负载 — 你可以仅为此世界降低视距和模拟距离,而不影响其他世界。小型小游戏地图不需要很长的渲染距离,因此调低此项可以在没有任何副作用的情况下减少卡顿。
- ⏭️ 跳过不必要的生成 — 如果玩家从不探索获取战利品,你可以完全关闭村庄/要塞的生成 — 这会使新世界的生成速度更快。
? 自动更新
WorldResetter 每 6 小时检查一次 Modrinth API 以获取新版本。当有更新可用时,OP 会在加入时被通知。使用 /wr version 手动检查,并使用 /wr version update 自动下载并应用更新。
? 许可证
MIT
⚙️ 源代码
GitHub
? WorldResetter
A minimal Paper plugin that deletes the overworld folder on every server startup and creates a fresh world with configurable seed, type, gamerules, time, weather, and Paper-specific performance tuning.
⚙️ How It Works
On every startup (before worlds load), WorldResetter deletes the world folder, then programmatically creates a new overworld using Bukkit.createWorld() with your configured seed and world type.
It also applies your gamerules, time, weather, and per-world performance settings, and writes the seed and spawn protection radius into server.properties.
ℹ️ world_nether and world_the_end are not touched.
? Why It Exists
Built for lava rising minigame servers where every match should feel different. Instead of playing the same map over and over, the world resets on every server restart — giving players a brand new terrain each time.
? Commands
| Command |
Description |
? /wr toggle |
Toggles world reset on/off |
✅ /wr toggle on |
Enables world reset on next startup |
❌ /wr toggle off |
Disables world reset on next startup |
ℹ️ /wr settings info |
Shows current settings |
? /wr settings seed <seed|random> |
Sets the world seed (or random) |
?️ /wr settings worldtype <type> |
⚠️ Currently under maintenance — disabled |
? /wr settings gamerule <rule> <value> |
Sets a gamerule |
? /wr settings gamerule list |
Lists configured gamerules |
? /wr settings gamerule reset |
Clears all gamerules |
☀️ /wr settings time <day|night|0-24000> |
Sets world time |
⛈️ /wr settings weather <clear|rain|thunder> |
Sets weather |
?️ /wr settings spawnprotection <radius> |
Sets spawn protection radius |
?️ /wr settings viewdistance <2-32|default> |
Sets this world's view distance (Paper-only) |
? /wr settings simulationdistance <2-32|default> |
Sets this world's simulation distance (Paper-only) |
?️ /wr settings structures <true|false> |
Toggles structure generation (villages, strongholds, etc.) |
♻️ /wr settings reset |
Resets all settings to defaults |
? /wr version |
Shows current version vs latest available |
? /wr version update |
Downloads and applies the latest version from Modrinth |
Alias: /worldresetter can be used in place of /wr
Permission: worldresetter.admin (default: op)
?️ Configuration (config.yml)
enabled: false
settings:
seed: ''
world-type: 'normal'
time: -1
weather: ''
spawn-protection: -1
view-distance: -1
simulation-distance: -1
generate-structures: true
gamerules: {}
? Requirements
- ☕ Java 21+
- ? Paper or a Paper-based fork (e.g. Purpur) — 1.21.11+ recommended
⚠️ Not compatible with vanilla Spigot or CraftBukkit — see Platform Support below.
? Platform Support
WorldResetter uses the Paper Plugin system (not Bukkit's plugin.yml) and only works on Paper and Paper-based servers like Purpur — it does not work on plain Spigot or CraftBukkit.
This isn't a bug, it's intentional: some of the plugin's features (like per-world view distance and the modern command API) simply don't exist outside of Paper. If your server runs on Purpur, you're fine — Purpur is built on top of Paper, so everything works the same.
? Performance Optimizations
A few things this plugin does to keep your server running smoothly:
- ⚡ Faster restarts — Deleting the old world used to happen one file at a time, which could take a while on large maps. Now it deletes everything at once using multiple CPU cores, so your server starts back up much faster — especially noticeable on SSD/NVMe drives.
- ? Lighter load per world — You can lower the view distance and simulation distance just for this world, without affecting your other worlds. Small minigame maps don't need long render distances, so turning this down reduces lag with no downside.
- ⏭️ Skip unnecessary generation — If players never explore for loot, you can turn off village/stronghold generation entirely — this makes new worlds generate faster.
? Auto-Update
WorldResetter checks the Modrinth API every 6 hours for new releases. OPs are notified on join when an update is available. Use /wr version to check manually and /wr version update to download and apply the update automatically.
? License
MIT
⚙️ Source Code
GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧