Map Resetter

一个适用于 1.21.6+ Paper 和 Spigot 的插件,可将世界保存为地图存档,并将世界重置为该地图存档。
能够在数秒内重置大型世界,甚至支持重置实体。
适用于迷你游戏,或任何需要将世界重置为地图存档的场景。
命令
命令支持 Paper 上的 Brigadier。
/mapsave
用于管理地图存档的命令。
如果 world 参数是可选的,未指定时将默认为你当前所在的世界。
你也可以将自定义地图/世界放入 maps 目录并运行 /mapresetter reload mapsaves 来保存地图存档。
| 子命令 |
权限 |
描述 |
| /mapsave save <name> [<world>] |
mapresetter.save |
使用世界文件创建新的地图存档 |
| /mapsave delete <map-save> |
mapresetter.delete |
删除地图存档 |
| /mapsave list |
mapresetter.list |
在聊天栏中显示所有地图存档列表 |
| /mapsave reset <world> <map-save> |
mapresetter.reset |
将世界重置为地图存档 |
| /mapsave update <map-save> [<world>] |
mapresetter.update |
更新地图存档以使用来自该世界的文件 |
/mapresetter
用于配置和其他操作的主插件命令
| 子命令 |
权限 |
描述 |
| /mapresetter version |
mapresetter.version |
在聊天栏中显示你正在运行的插件版本 |
| /mapresetter reload [(messages|mapsaves|config)] |
mapresetter.reload |
重新加载 messages.yml、config.yml 以及地图存档保存文件,或者仅重新加载指定的其中一个 |
| /mapresetter info |
mapresetter.info |
在聊天栏中发送插件描述 |
| /mapresetter debug <boolean> |
mapresetter.debug |
设置是否启用调试日志记录 - 目前仅指是否在复制时记录被跳过的文件 |
配置
#未来可能会增加更多配置选项
#是否在复制文件时被跳过则显示调试消息
debug: false
消息
#支持 Paper 上的 Mini Message
delete-map-save: "&eDeleted map save %mapsave%"
map-save-list-header: "&aMap resets:"
reset-map-save: "&eReset world %world% to map save %mapsave%"
create-map-save: "&aCreated new map save %mapsave% using world file from %world%"
update-map-save: "&aUpdated map save %mapsave% to use world file from %world%"
version-message: "&aMapresetter is running on version %version%"
reload-all: "&aReloaded messages, map save folders, and config"
reload-messages: "&aReloaded messages.yml"
reload-map-saves: "&aReloaded map save folders"
reload-config: "&aReloaded config.yml"
set-debug: "&aSet send debug logs to %debug%"
开发者 API
该插件附带一个 API,你可以从 Bukkit 插件中接入它来创建、重置、获取地图存档等。
请在 DEVELOPER_API.md 查看开发者 API 用法
Map Resetter

A 1.21.6+ paper and spigot plugin to save worlds as map saves and reset worlds to those map saves.
Resets large worlds in seconds and even supports resetting entities.
Useful for minigames, or whenever you need to reset a world to a map.
Commands
Commands support brigadier on paper.
/mapsave
The command for managing map saves.
If the world argument is optional, it will default to the world you are in if not specified.
For saving a map save you can also drop a custom map/world into the maps directory and run /mapresetter reload mapsaves
| Subcommand |
Permission |
Description |
| /mapsave save <name> [<world>] |
mapresetter.save |
Create a new map save using the world file |
| /mapsave delete <map-save> |
mapresetter.delete |
Delete a map save |
| /mapsave list |
mapresetter.list |
Show a list of all map saves in chat |
| /mapsave reset <world> <map-save> |
mapresetter.reset |
Reset a world to a map save |
| /mapsave update <map-save> [<world>] |
mapresetter.update |
Update a map save to use the world file from the world |
/mapresetter
The main plugin command for configuration and stuff
| Subcommand |
Permission |
Description |
| /mapresetter version |
mapresetter.version |
Shows the version of the plugin you are running in chat |
| /mapresetter reload [(messages|mapsaves|config)] |
mapresetter.reload |
Reloads messages.yml, config.yml, and the map save save files, or only one of these if specified |
| /mapresetter info |
mapresetter.info |
Sends the plugin description in chat |
| /mapresetter debug <boolean> |
mapresetter.debug |
Sets whether debugging logging is enabled - currently just whether to log skipped files in copying |
Config
#More config options may come in future
#Whether to show debug messages when a file is skipped copying
debug: false
Messages
#Supports mini message on paper
delete-map-save: "&eDeleted map save %mapsave%"
map-save-list-header: "&aMap resets:"
reset-map-save: "&eReset world %world% to map save %mapsave%"
create-map-save: "&aCreated new map save %mapsave% using world file from %world%"
update-map-save: "&aUpdated map save %mapsave% to use world file from %world%"
version-message: "&aMapresetter is running on version %version%"
reload-all: "&aReloaded messages, map save folders, and config"
reload-messages: "&aReloaded messages.yml"
reload-map-saves: "&aReloaded map save folders"
reload-config: "&aReloaded config.yml"
set-debug: "&aSet send debug logs to %debug%"
Developer API
The plugin comes with an API you can hook into from bukkit plugins to create, reset, get map saves and more.
See the developer api usage in DEVELOPER_API.md
评论 0
登录后参与评分
还没有评论,来抢沙发吧