一个 Bukkit 插件,用于即时重置整个世界。
- 即时重置整个世界,无论其大小如何。
- 服务器重启不会重置世界,只有在你需要时才会重置。
- 玩家物品栏不会被重置。
- 怪物和其他实体也会被重置。
- 兼容 Multiverse-Core。
- 兼容 Multiworld。
- 开源许可证。
- 后端代码成熟,支持所有 CraftBukkit 版本,最低至 1.4.7
命令
/ir list
权限: instantreset
列出可重置的世界。
/ir reset [world]
权限: instantreset
重置当前世界或指定的世界。
配置
示例
# 查找世界模板的位置。
templatedir: templates
# 存储 InstantReset 世界临时文件的位置。
worlddir: worlds
# 重启时重置世界
resetOnRestart: false
# 可重置的世界列表
#
# 注意:如果世界无效,它们将不会加载,并且未加载的原因消息会打印到控制台。
#
# 环境必须与世界存档匹配,否则你将得到一个空世界。
#
# 你目前无法使用此插件来重置 CraftBukkit 中的默认世界,因为卸载 API 阻止了它们的卸载。
worlds:
# 世界名称。
ir:
# 包含世界存档的目录名称。
template: "ir"
# 环境,可选 NORMAL, NETHER, THE_END
environment: NORMAL
# 难度,可选 EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
# 世界名称。
ir_nether:
# 包含世界存档的目录名称。
template: "ir_nether"
# 环境,可选 NORMAL, NETHER, THE_END
environment: NETHER
# 难度,可选 EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
# 世界名称。
ir_the_end:
# 包含世界存档的目录名称。
template: "ir_the_end"
# 环境,可选 NORMAL, NETHER, THE_END
environment: THE_END
# 难度,可选 EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
快速开始
- 安装插件。
- 将世界存档复制到 plugins/InstantReset/templates/<世界名称>
- 在 config.yml 中添加该世界,并设置正确的环境类型和所需的难度等级。世界名称必须与你在 templates/ 下放置世界存档的文件夹名称匹配。
注意事项
你无法重置启动时由 bukkit 加载的世界,默认情况下这是 world、world_nether 和 world_the_end。如果你希望使用它来重置 world_nether 或 world_the_end,你应该分别在 server.properties 或 bukkit.yml 中禁用 nether 或 the_end。默认世界无法通过此插件进行重置。
如果你指定了错误的环境类型,你很可能会得到一个空世界。
其他插件可以依赖此插件并使用它来重置世界。
当服务器关闭时,config.yml 的更改将被覆盖,请确保在服务器未运行时修改它。
示例
重置末地
你还需要安装 Multiverse 和 Multiverse-NetherPortals。
- 启动你的 Minecraft 服务器,使用
/mvtp world_the_end 传送至末地,并四处走动以确保所有内容已生成。
- 停止服务器。
- 编辑 bukkit.yml,并将
allow-end: true 更改为 allow-end: false
- 将 world_the_end 复制到 plugins/InstantReset/templates/world_the_end
- 在配置的 worlds 部分添加以下内容
world_the_end:
template: "world_the_end"
environment: THE_END
difficulty: NORMAL
- 启动服务器。
- 使用 Multiverse-NetherPortals 链接世界
/mvnp link end world world_the_end
- 在需要时使用
/ir reset world_the_end 重置末地
A Bukkit plugin to reset whole worlds, instantly.
- Reset an entire world instantly, no matter the size.
- Server restart does not reset worlds, they are only reset when you want.
- Player inventories are not reset.
- Monsters and other entities are also reset.
- Works with Multiverse-Core.
- Works with Multiworld.
- Open Source License.
- Mature backend code, works with all CraftBukkit versions as far back as 1.4.7
Commands
/ir list
Permission: instantreset
List worlds which can be reset.
/ir reset [world]
Permission: instantreset
Reset the current world, or the specified world.
Configuration
Example
# Where to look for world templates.
templatedir: templates
# Where to store temporary files for instantreset worlds.
worlddir: worlds
# Reset worlds on restart
resetOnRestart: false
# List of resetable worlds
#
# Note: they will not load if they are invalid, and messages as
# to why the did not load will be printed to the console.
#
# The environment must match the world save or you will end up
# with an empty world.
#
# You cannot (yet) use this plugin to reset the default worlds in
# CraftBukkit, as the unload API prevents them from being unloaded.
worlds:
# Name of world.
ir:
# Name of directory containing the world save.
template: "ir"
# Environment, one of NORMAL, NETHER, THE_END
environment: NORMAL
# Difficulty, one of EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
# Name of world.
ir_nether:
# Name of directory containing the world save.
template: "ir_nether"
# Environment, one of NORMAL, NETHER, THE_END
environment: NETHER
# Difficulty, one of EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
# Name of world.
ir_the_end:
# Name of directory containing the world save.
template: "ir_the_end"
# Environment, one of NORMAL, NETHER, THE_END
environment: THE_END
# Difficulty, one of EASY, NORMAL, HARD, PEACEFUL
difficulty: NORMAL
Quick Start
- Install the plugin.
- Copy a world save to plugins/InstantReset/templates/<world name>
- Add the world to config.yml with the correct environment type and difficulty level of your choice. The name of the world, must match the name of the folder your placed your world save in under templates/.
Notes
You cannot reset worlds which are loaded by bukkit at startup, by default this is world, world_nether and world_the_end. If you wish to use it to reset either world_nether or world_the_end you should disable either nether or the_end in server.properties or bukkit.yml respectively. The default world cannot be reset with this plugin.
If you specify the wrong environment type you will likely end up with an empty world.
It is possible for other plugins to depend on this plugin and use it to reset worlds.
Changes to config.yml will be overwritten when the server is shut down, ensure you change it whilst your server is not running.
Examples
Resetting the end
You will also need Multiverse and Multiverse-NetherPortals.
- Start your minecraft server, teleport to the end using
/mvtp world_the_end, and walk around to ensure it's all generated.
- Stop your server.
- Edit bukkit.yml, and change
allow-end: true to allow-end: false
- Copy world_the_end to plugins/InstantReset/templates/world_the_end
- Add the following to the worlds section of the configuration
world_the_end:
template: "world_the_end"
environment: THE_END
difficulty: NORMAL
- Start your server.
- Link the worlds using Multiverse-NetherPortals
/mvnp link end world world_the_end
- Reset the end when needed using
/ir reset world_the_end
评论 0
登录后参与评分
还没有评论,来抢沙发吧