- 版权类型
- 原创
- 插件中文名称
- 自动刷新世界
- 插件英文名称
- MTAutoResetWorld
- 原帖地址
- #
- 支持的核心(服务端)
- Spigot
- Paper
- Folia
- Purpur
- PufferFish
- SpongeVanilla
- Leaves
- 其他核心
- 语言支持
- 中文(简体)
- 前置组件
- PlaceholderAPI
Multiverse-Core
MyWorlds
- 适配版本(Java)
- 1.21
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12
- 1.11
- 1.10
- 1.9
- 1.8
- 1.7
- 1.6
插件介绍
插件命令
权限节点
配置文件
YAML:
# MTAutoResetWorld 配置文件
# 作者: 馒头 (QQ33731789)
# 插件语言 (zh_CN / en_US)
language: zh_CN
# 世界重置设置
world-reset:
# 重置使用的插件后端: MULTIVERSE / MYWORLDS
# MULTIVERSE = 使用 Multiverse-Core 重置世界
# MYWORLDS = 使用 MyWorlds 重置世界
backend: MULTIVERSE
# 重置前广播提醒 (分钟)
broadcast-before-minutes:
- 30
- 10
- 5
- 1
# 重置时提示消息使用的标题显示(需要1.8+)
use-title: true
# 资源世界列表
worlds:
# 示例世界1: 每天凌晨4点重置
resource_world:
# 是否启用此世界的自动重置
enabled: true
# 世界类型: NORMAL / NETHER / THE_END
environment: NORMAL
# 世界生成器 (留空使用默认)
generator: ''
# 是否保留原世界种子(false = 每次随机种子)
keep-seed: false
# 指定固定种子(keep-seed为true时生效,0=使用当前种子)
seed: 0
# 重置后自动设置的游戏规则
gamerules:
keepInventory: 'false'
doDaylightCycle: 'true'
doMobSpawning: 'true'
doWeatherCycle: 'true'
mobGriefing: 'true'
# 重置计划(支持多个计划)
schedules:
# interval 类型: 按固定间隔重置
# 支持: Xd Xh Xm (天/小时/分钟)
- type: interval
interval: 1d
# 也可以使用 cron 类型精确定时
# - type: cron
# cron: '0 20 * * 4' # 每周四晚8点
# 重置后执行的命令列表 (%world% 替换为世界名)
after-reset-commands:
- 'broadcast &a[MTAutoResetWorld] 资源世界已重置完成!'
# 示例世界2: 每周四晚8点 + 每月1日重置
resource_nether:
enabled: false
environment: NETHER
generator: ''
keep-seed: false
seed: 0
gamerules:
keepInventory: 'false'
schedules:
- type: cron
cron: '0 20 * * 4'
- type: cron
cron: '0 0 1 * *'
after-reset-commands: []
# 定时指令设置
scheduled-commands:
enabled: true
tasks:
# 示例: 每天早8点执行
- name: morning-broadcast
enabled: false
type: cron
cron: '0 8 * * *'
commands:
- 'broadcast &e早上好!服务器一切正常。'
# 示例: 每6小时执行一次
- name: periodic-save
enabled: false
type: interval
interval: 6h
commands:
- 'save-all'
# 日志清理设置
log-clean:
enabled: true
# 日志保留天数(超过此天数的日志文件将被删除)
keep-days: 30
# 日志文件路径(相对于服务端根目录)
log-path: 'logs'
# 日志清理周期(单位:小时)
clean-interval-hours: 24
# 匹配删除的文件后缀
file-extensions:
- '.log.gz'
- '.log'
# 倒计时显示格式 (用于 PlaceholderAPI)
countdown-format:
# 距离下次重置的倒计时格式
# 可用变量: {days} {hours} {minutes} {seconds}
format: '{days}天{hours}小时{minutes}分{seconds}秒'
format-no-days: '{hours}小时{minutes}分{seconds}秒'
format-minutes-only: '{minutes}分{seconds}秒'
format-seconds-only: '{seconds}秒'