Real Time Plugin

作者:rexlNico 发布时间:2019年7月21日 原生版本:未知 测试支持:1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16,1.17,1.18,1.19,1.20

将你的《我的世界》时间设置为你的实时时间

点此下载

插件详细介绍

⏱️ RealTime 是一个 Minecraft 插件,它允许你将游戏内的时间和天气与真实世界同步。你可以针对不同的世界设置不同的时间和天气来源。

⏱️ RealTime 插件

🔗 源码地址

GitHub 仓库

💰 捐赠

如果你喜欢这个插件,可以考虑捐赠来支持作者: PayPal 捐赠链接

⚙️ 配置

RealTime 插件包含世界配置文件和消息配置文件,允许你自定义插件的行为和显示消息。

🌍 世界配置

每个世界可以单独配置时间源和天气源。以下是一个世界配置文件的示例:


# Configuration for the world "world"
world:
  # Enable or disable the RealTime functionality for this world
  enabled: true
  # What should be used for the time?
  # Options:
  #   - "OFF": Disables time sync
  #   - "FILE": Use a custom time from the timeFile
  #   - "WEB": Use a time from a website
  timeSource: "WEB"
  # What File should be used for the time?
  # This is only used if timeSource is set to "FILE"
  timeFile: "time.txt"
  # The timezone you want to use from the website
  # Go to https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a list of all timezones
  timeZone: "Europe/Berlin"
  # Should we update the time every tick?
  # If this is set to false, the time will only be updated every timeUpdateInterval ticks
  tickUpdate: true
  # How often should we update the time?
  # This is only used if tickUpdate is set to false
  timeUpdateInterval: 20
  # Should we sync the weather?
  weatherSync: true
  # The API key for OpenWeatherMap
  # Go to https://openweathermap.org/ to get your API key
  weatherKey: "YOUR_API_KEY"
  # The location you want to use for the weather
  weatherLocation: "Berlin"

💬 消息配置

你可以自定义插件发送的消息。以下是一个消息配置文件的示例:


# This is the message configuration file
messages:
  # This is the message that is sent when the config is reloaded
  reload: "&aThe config has been reloaded!"
  # This is the message that is sent when the version command is used
  version: "&aThe current version is &6%version%&a!"
  # This is the message that is sent when the time command is used
  time: "&aThe current time is &6%time%&a!"
  # This is the message that is sent when there is no permission
  noPermission: "&cYou don't have permission to do that!"

⚙️ 指令

  • /realtime reload <file> - 重载配置文件。权限:realtime.reload
  • /realtime time <file> - 显示当前时间。权限:realtime.reload
  • /realtime version - 显示插件版本。权限:realtime.reload

☀️ 天气设置

  1. 访问 OpenWeatherMap 并创建一个账户。
  2. 访问 API 密钥页面 并复制你的密钥。
  3. 将密钥粘贴到世界配置文件的 weatherKey 字段中。