功能
本插件允许你将任何 WorldEdit 选区转换为可恢复的区域。
AreaReloader 会创建选区的结构图副本,并将其拆分为较小的区块以分摊服务器负载,从而实现更流畅的粘贴/再生。
每个已保存的区域都可以通过命令手动恢复,也可以按照设定的时间计划自动恢复。
恢复间隔完全可自定义,非常适合用于重置资源区域、PvP 竞技场、地下城或任何需要重置的地方。
兼容性
此版本的插件仅适用于 WorldEdit。如果你使用的是 FastAsyncWorldEdit (FAWE),则必须使用镜像插件 AreaReloader-FAWE。
命令
命令
- /ar - 显示插件的帮助信息
- /ar help <Command> - 显示通用帮助或在指定命令时显示特定帮助
- /ar version - 显示当前插件的版本
- /ar create <AreaName> <CopyEntities> - 创建选定区域的副本。
复制实体参数接受 true 或 false 值,决定在创建时是否复制选定区域内的实体。
如果设置为 true,当区域加载时,已保存的实体将会重生。
- /ar load <AreaName> - 加载现有区域
- /ar delete <AreaName> - 删除现有区域
- /ar list - 列出所有现有区域
- /ar hook - 显示插件挂钩和依赖项的帮助界面
- /ar info - 显示特定现有区域的信息
- /ar reload - 重新加载 AreaReloader 的配置文件
- /ar display <AreaName> - 在区域周围显示粒子效果
- /ar cancel <AreaName, ALL> - 取消一个或所有区域的加载。
- /ar location <AreaName> <set, teleport> - 允许你为玩家创建一个安全的位置。
权限
权限
- areareloader.command.help - 授予 /ar help 命令的访问权限
- areareloader.command.version - 授予 /ar version 命令的访问权限
- areareloader.command.create - 授予 /ar create 命令的访问权限
- areareloader.command.load - 授予 /ar load 命令的访问权限
- areareloader.command.delete - 授予 /ar delete 命令的访问权限
- areareloader.command.list - 授予 /ar list 命令的访问权限
- areareloader.command.hook - 授予 /ar hook 命令的访问权限
- areareloader.command.info - 授予 /ar info 命令的访问权限
- areareloader.command.reload - 授予 /ar reload 命令的访问权限
- areareloader.command.display - 授予 /ar display 命令的访问权限
- areareloader.command.cancel - 授予 /ar cancel 命令的访问权限
- areareloader.command.location - 授予 /ar location 命令的访问权限
- areareloader.command.admin - 授予所有命令的访问权限
配置
有两个主要的配置文件;
config.yml 允许你自定义语言和常规设置,而 areas.yml 配置包含所有区域的详细信息以及每个区域的自定义设置,例如自动加载和间隔时间。
config.yml
| 设置 |
默认值 |
值 |
描述
|
| Debug |
true |
true/false |
如果启用,会将插件的所有处理过程打印到位于 /AreaRealoder/debug.txt 的调试文件中。 |
| Updater |
true |
true/false |
如果启用,会自动检查插件更新。 |
| Metrics |
true |
true/false |
如果启用,将检索匿名的服务器统计数据以帮助跟踪插件的使用情况。 |
| Announcer |
true |
true/false |
如果启用,将广播插件的品牌消息。 |
AreaLoading 设置
| 设置 |
默认值 |
值 |
描述
|
| Global interval |
500 |
大于 0 的任何值 |
如果使用全局选项,设置所有区块在加载之间等待的时间间隔 (毫秒)。
|
| Fast mode |
true |
true/false |
是否使用 FAWE 的快速模式;根据你的服务器性能,你可以启用或禁用此功能。 |
| Percentage |
15 |
大于 0 的任何值 |
设置加载区域时向玩家广播的区域加载进度百分比。 |
AutoReload 设置
| 设置 |
默认值 |
值 |
描述
|
| Checker |
true |
true/false |
启用或禁用区域调度器功能。 |
| Notify admins |
true |
true/false |
是否在区域自动加载时通知拥有管理员权限的玩家。 |
| Notify console |
true |
true/false |
是否在区域自动加载时通知控制台。 |
areas.yml
加载间隔设置
| 设置项 |
默认值 |
可选值 |
描述
|
| 全局 |
true |
true/false |
该区域是否使用区块加载之间的全局间隔。 |
| 时间 |
200 |
大于 0 的任意值 |
该区域在区块加载之间必须等待的时间间隔(毫秒)。
注意:若要使此区域使用自定义间隔,必须禁用全局间隔。 |
自动重载设置
| 设置项 |
默认值 |
可选值 |
描述
|
| 启用 |
true |
true/false |
启用/禁用区域的自动重载功能。 |
| 时间 |
200000 |
大于 0 的任意值 |
设置区域自动重载的时间间隔(毫秒)。 |
问题反馈
在此处提交新问题。
提交新问题时,请添加并明确说明以下内容:
- Debug 文件(位于 AreaReloader\debug.txt,可通过配置文件启用)。
- 服务端版本(spigot、paper、bukkit)——执行 /version 命令;
- AreaReloader 的版本 ——执行 /ar version 命令;
- WorldEdit 的版本;
- 遇到问题的场景或时机,例如当时触发了什么操作(指令、自动重载等)。
- 错误日志(来自控制台或 debug 文件)。
依赖项
本插件依赖于 WorldEdit,只要你的服务器支持任何版本的 WE 即可正常工作。
技术支持
<br>
<i>我会尽力通过 Discord 为我的项目提供支持。<br>如果你有疑问或需要帮助,欢迎加入!</i>
数据统计
本插件会收集匿名的服务器统计数据,这有助于我跟踪插件的使用情况。
建议你保留此设置开启,因为它能激励我为项目投入更多精力与心血!
由 bStats 提供。
Features
This plugin lets you turn any WorldEdit selection into a restorable region.
AreaReloader creates a schematic copy of the selection, split in smaller sections in order to distribute server's load, allowing smoother pasting/regeneration.
Each saved area can be restored manually with a command or automatically on a timed schedule.
The restore interval is fully customizable, making it ideal for regenerating resource areas, PvP arenas, dungeons, or any place that needs resetting.
Compatibility
This version of the plugin will only work with WorldEdit, if you use FastAsyncWorldEdit (FAWE) you must use the mirror plugin, AreaReloader-FAWE.
Commands
Commands
- /ar - Shows plugin's help lines
- /ar help <Command> - Shows general help or specific help when a command is specified
- /ar version - Shows the current plugin's version
- /ar create <AreaName> <CopyEntities> - Creates a new copy of the selected area.
The copy entities parameter will accept a true or false value, which will decide whether or not to copy entities inside the selected area at the moment of creation.
If set to true, whenever the area gets loaded, saved entities will be respawned.
- /ar load <AreaName> - Loads an existing area
- /ar delete <AreaName> - Deletes an existing area
- /ar list - Lists all existing areas
- /ar hook - Shows a help interface for the plugin's hooks and
dependencies
- /ar info - Shows information about a specific existing area
- /ar reload - Reloads AreaReloader's configuration file
- /ar display <AreaName> - Displays particles around areas
- /ar cancel <AreaName, ALL> - Cancels the loading of one or all areas.
- /ar location <AreaName> <set, teleport> - Allows you to create a safe location for players.
Permissions
Permissions
- areareloader.command.help - Gives access to the /ar help command
- areareloader.command.version - Gives access to the /ar version command
- areareloader.command.create - Gives access to the /ar create command
- areareloader.command.load - Gives access to the /ar load command
- areareloader.command.delete - Gives access to the /ar delete command
- areareloader.command.list - Gives access to the /ar list command
- areareloader.command.hook - Gives access to the /ar hook command
- areareloader.command.info - Gives access to the /ar info command
- areareloader.command.reload - Gives access to the /ar reload command
- areareloader.command.display - Gives access to /ar display command
- areareloader.command.cancel- Gives access to /ar cancel command
- areareloader.command.location - Gives access to /ar location command
- areareloader.command.admin - Gives access to all commands
Configuration
There are two main configuration files;
config.yml allows you to customise language and general settings, whereas the areas.yml config contains all the areas' details and custom settings per area, such as auto loading and intervals.
config.yml
| Setting |
Default value |
Values |
Description
|
| Debug |
true |
true/false |
If enabled prints all the plugin's processes to the debug file located at /AreaRealoder/debug.txt. |
| Updater |
true |
true/false |
If enabled, automatically checks for plugin updates. |
| Metrics |
true |
true/false |
If enabled retrieves anonymous server's statistics to help keep track of the plugin's usage. |
| Announcer |
true |
true/false |
If enabled announces the plugin's branding message. |
AreaLoading settings
| Setting |
Default value |
Values |
Description
|
| Global interval |
500 |
Any value above 0 |
Sets an interval (in milliseconds) all areas use to wait between section loads if using the global option.
|
| Fast mode |
true |
true/false |
Whether or not to use FAWE's fast mode; depending on your server performance you may enable or disable this function. |
| Percentage |
15 |
Any value above 0 |
Sets the area loading progress percentage to broadcast to the player when loading an area. |
AutoReload settings
| Setting |
Default value |
Values |
Description
|
| Checker |
true |
true/false |
Enable or disable the area scheduler function. |
| Notify admins |
true |
true/false |
Whether or not to notify players with the admin permission whenever an area automatically loads. |
| Notify console |
true |
true/false |
Whether or not to notify console whenever an area automatically loads. |
areas.yml
Loading interval settings
| Setting |
Default value |
Values |
Description
|
| Global |
true |
true/false |
Whether or not the area should use the global interval between section loads. |
| Time |
200 |
Any value above 0 |
The time interval (in milliseconds) the area must wait between section loads.
Note: Global interval must be disabled for this area to use its custom interval. |
Auto reload settings
| Setting |
Default value |
Values |
Description
|
| Enabled |
true |
true/false |
Enables/disables the area to automatically reload. |
| Time |
200000 |
Any value above 0 |
Sets the interval (in milliseconds) for the area to automatically reload. |
Issues
Open a new issue here.
When opening a new issue please add and specify:
- Debug's file (located at AreaReloader\debug.txt, can be enabled through the config).
- Provider's version (spigot, paper, bukkit) - /version;
- AreaReloader's version - /ar version;
- WorldEdit's version;
- Where/when you met the issue, as in what action had been fired at the time (command, auto reloading, etc.).
- Error log (either from console or debug file).
Dependencies
The plugin depends on WorldEdit, it will work with any WE's version your server supports.
Support
<br>
<i>I do my best to provide support for my projects over discord.<br>If you'd have questions or support requests feel free to join!</i>
Metrics
This plugin collects anonymous server statistics which helps me keep track of the plugin's usage.
I invite you to keep this setting on as it contributes to boosting my dedication and work towards my projects!
Provided by bStats.
评论 0
登录后参与评分
还没有评论,来抢沙发吧