Skip to content

TimeSync 时间同步

将服务器时间与现实时间同步。

功能

  • 服务器时间跟随现实时区
  • 支持白名单/黑名单模式选择世界
  • 可禁止睡觉跳过黑夜(玩家仍可躺下,但不会跳过时间)

命令

命令说明权限
/dr timesync status查看状态dreamrealms.timesync
/dr timesync toggle重启同步任务dreamrealms.timesync
/dr timesync timezone <时区>设置时区dreamrealms.timesync
/dr timesync mode <whitelist|blacklist>切换模式dreamrealms.timesync
/dr timesync world <add|remove> <世界>管理世界dreamrealms.timesync
/dr timesync sleep <on|off>禁止睡觉开关dreamrealms.timesync

配置

modules/timesync/settings.yml

yaml
debug: false
timezone: Asia/Shanghai
sync-interval: 1200
whitelist-mode: true
worlds:
  - world
disable-sleep: true

配置说明

配置项说明默认值
debug调试模式false
timezone时区Asia/Shanghai
sync-interval同步间隔 (ticks)1200
whitelist-mode白名单模式true
worlds世界列表[world]
disable-sleep禁止跳过黑夜true

Released under the GPL-3.0 License.