总计
xDay 按世界控制时间与天气
简介(简短描述)
独立控制每个世界的时间与天气。将世界设置为永远是白天、永远是黑夜、无雨,并支持通过 HEX 颜色代码自定义所有消息!
正文(完整描述)
受够了大厅中不可预测的天气吗?想要创建一个永远黑暗且无风暴的挖矿世界吗?xDay 是终极解决方案。这款极其轻量且高效的插件让你能够完全掌控昼夜循环和天气,且支持按世界进行设置。
其直观的配置文件和完全可定制的消息功能使其成为任何类型服务器(从生存服到小游戏服)不可或缺的工具。
✨ 主要特性
✅ 完全按世界控制:核心功能!为特定世界(如 world、world_nether、lobby 等)分配固定的时间和天气,其余世界则正常运行。
⚙️ 简单直观的配置:所有内容都通过易于理解的 config.yml 文件进行管理。无需复杂的游戏内命令!
? 100% 可定制消息:编辑 messages.yml 中的每条插件消息。完美支持经典 Minecraft 颜色代码 (&a) 和 HEX 颜色代码 (<#FF5733>),打造独特的配色方案!
? 动态帮助菜单:直接在 messages.yml 文件中添加或删除帮助菜单的行。根据你的服务器需求定制帮助信息!
? 轻量级高性能:设计追求极致效率,不会对服务器性能造成任何影响。
? 开发者 API:包含一个简单的 API,供其他插件接入 xDay 以获取世界的配置信息。
⌨️ 命令自动补全:/xday help 和 /xday reload 命令支持 Tab 键自动补全,使用更快捷。
? 配置
该插件会在 /plugins/xDay/ 文件夹下生成两个配置文件。
config.yml
# _________ _____.__
# \_ ___ \ ____ _____/ ____\__| ____
# / \ \/ / _ \ / \ __\| |/ ___\
# \ \___( <_> ) | \ | | / /_/ >
# \______ /\____/|___| /__| |__\___ /
# \/ \/ /_____/
# Hecho con amor por 777 Studios - xPlugins
# 下方列表中未列出的世界的默认设置。
default-settings:
lock-weather: 'disabled' # 选项: 'clear', 'rain', 'disabled'
set-time: 'disabled' # 选项: 'day', 'noon', 'night', 'disabled', 或一个数字 (0-24000)
# 特定世界的配置。
worlds:
# 普通主世界
world:
lock-weather: 'clear'
set-time: 'day'
# 下界世界
world_nether:
lock-weather: 'disabled'
set-time: 'disabled'
# 末地世界
world_the_end:
lock-weather: 'disabled'
set-time: 'disabled'
# 例如,用于始终处于黑夜状态的挖矿世界示例:
# minas:
# lock-weather: 'clear'
# set-time: 'night'
消息配置 (Messanges):
# _____ ____ ____ ___________ |__| ____ ______
# / \_/ __ \ / \ / ___/\__ \ | |/ __ \ / ___/
# | Y Y \ ___/| | \\___ \ / __ \_ | \ ___/ \___ \
# |__|_| /\___ >___| /____ >(____ /\__| |\___ >____ >
# Hecho con amor por 777 Studios - xPlugins
# 使用 HEX 颜色 (<#RRGGBB>) 或 Minecraft 颜色代码 (&a, &b 等)
prefix: "<#FFB347> [xDay] "
reload: "<#77DD77>配置和消息已重新加载!"
no-permission: "<#FF6961>你没有权限执行此命令。"
help-message:
- "&7-----------------&f 帮助 <#FFB347>xDay &7--------------------"
- ''
- "<#AEC6CF> /xday help <#878787>➛&f 显示此帮助消息。"
- "<#AEC6CF> /xday reload <#878787>➛&f 重新加载插件配置。"
- ""
- "<#C3B1E1>? 由 WillfryDev 创建的插件。 ?"
- ''
- "&7---------------------------------------"
? 命令与权限
/xday help (别名: /xd)
描述:显示可配置的帮助菜单。
权限:xday.help(默认授予所有玩家)。
/xday reload
描述:无需重启服务器即可重新加载 config.yml 和 messages.yml 文件。
权限:xday.reload(默认授予 OP)
? 面向开发者 (API)
xDay 提供了一个静态 API,方便与其他插件集成。
1. 在你的 plugin.yml 中添加软依赖:
YAML
softdepend: [xDay]
2. 在代码中访问 API:
Java
// 检查服务器上是否安装了 xDay
if (getServer().getPluginManager().getPlugin("xDay") != null) {
// 获取 API 实例
jn.willfrydev.xday.api.xDayAPI api = jn.willfrydev.xday.xDay.getApi();
// 使用示例
World lobbyWorld = Bukkit.getWorld("lobby");
if (lobbyWorld != null) {
String weather = api.getLockedWeather(lobbyWorld); // 返回 "clear", "rain" 或 "disabled"
String time = api.getLockedTime(lobbyWorld); // 返回 "day", "night" 等
System.out.println("大厅的天气锁定为: " + weather);
// 你也可以强制更新
api.forceUpdate(lobbyWorld);
}
}
</details>
下载 xDay,完全掌控你世界的氛围吧!
Total
xDay Time & Weather Control per World
Summary (Short Description)
Independently control the time and weather of each world. Set worlds to always be day, always night, rain-free, and customize all messages with full HEX color support!
Body (Full Description)
Tired of unpredictable weather in your lobby? Want to create a mining world that's perpetually dark and storm-free? xDay is the definitive solution. This extremely lightweight and efficient plugin gives you absolute control over the day-night cycle and the weather, all on a per-world basis.
Its intuitive configuration and total message customization make it an essential tool for any server type, from Survival to minigames.
✨ Key Features
✅ Total Per-World Control: The main event! Assign a fixed time and weather to specific worlds (world, world_nether, lobby, etc.) and let the rest run normally.
⚙️ Simple & Intuitive Configuration: Everything is managed from a very easy-to-understand config.yml file. No complex in-game commands needed!
? 100% Customizable Messages: Edit every plugin message from messages.yml. Full support for classic Minecraft color codes (&a) and HEX color codes (<#FF5733>) for unique color palettes!
? Dynamic Help Menu: Add or remove lines from the help menu directly in the messages.yml file. Tailor the help message to your server!
? Lightweight & High-Performance: Designed to be as efficient as possible, with no impact on your server's performance.
? Developer API: Includes a simple API for other plugins to hook into xDay and get a world's configuration.
⌨️ Command Tab-Completion: The /xday help and /xday reload commands have tab completion for faster use.
? Configuration
The plugin generates two configuration files in the /plugins/xDay/ folder.
config.yml
# _________ _____.__
# \_ ___ \ ____ _____/ ____\__| ____
# / \ \/ / _ \ / \ __\| |/ ___\
# \ \___( <_> ) | \ | | / /_/ >
# \______ /\____/|___| /__| |__\___ /
# \/ \/ /_____/
# Hecho con amor por 777 Studios - xPlugins
# Configuración por defecto para mundos que no estén en la lista de abajo.
default-settings:
lock-weather: 'disabled' # Opciones: 'clear', 'rain', 'disabled'
set-time: 'disabled' # Opciones: 'day', 'noon', 'night', 'disabled', o un número (0-24000)
# Configuración para mundos específicos.
worlds:
# Mundo principal normal
world:
lock-weather: 'clear'
set-time: 'day'
# Mundo del Nether
world_nether:
lock-weather: 'disabled'
set-time: 'disabled'
# Mundo del End
world_the_end:
lock-weather: 'disabled'
set-time: 'disabled'
# Ejemplo para un mundo de minería donde siempre es de noche:
# minas:
# lock-weather: 'clear'
# set-time: 'night'
Messanges:
# _____ ____ ____ ___________ |__| ____ ______
# / \_/ __ \ / \ / ___/\__ \ | |/ __ \ / ___/
# | Y Y \ ___/| | \\___ \ / __ \_ | \ ___/ \___ \
# |__|_| /\___ >___| /____ >(____ /\__| |\___ >____ >
# Hecho con amor por 777 Studios - xPlugins
# Usa colores HEX (<#RRGGBB>) o de Minecraft (&a, &b, etc.)
prefix: "<#FFB347> [xDay] "
reload: "<#77DD77>¡La configuración y los mensajes han sido recargados!"
no-permission: "<#FF6961>No tienes permiso para ejecutar este comando."
help-message:
- "&7-----------------&f Ayuda de <#FFB347>xDay &7--------------------"
- ''
- "<#AEC6CF> /xday help <#878787>➛&f Muestra este mensaje de ayuda."
- "<#AEC6CF> /xday reload <#878787>➛&f Recarga la configuración del plugin."
- ""
- "<#C3B1E1>? Plugin creado por WillfryDev. ?"
- ''
- "&7---------------------------------------"
? Commands & Permissions
/xday help (Alias: /xd)
Description: Displays the configurable help menu.
Permission: xday.help (granted to all by default).
/xday reload
Description: Reloads the config.yml and messages.yml files without a server restart.
Permission: xday.reload (granted to OPs by)
? For Developers (API)
xDay includes a static API to make integration with other plugins easy.
1. Add softdepend to your plugin.yml:
YAML
softdepend: [xDay]
2. Access the API in your code:
Java
// Check if xDay is on the server
if (getServer().getPluginManager().getPlugin("xDay") != null) {
// Get the API instance
jn.willfrydev.xday.api.xDayAPI api = jn.willfrydev.xday.xDay.getApi();
// Example Usage
World lobbyWorld = Bukkit.getWorld("lobby");
if (lobbyWorld != null) {
String weather = api.getLockedWeather(lobbyWorld); // Returns "clear", "rain", or "disabled"
String time = api.getLockedTime(lobbyWorld); // Returns "day", "night", etc.
System.out.println("The weather in the lobby is locked to: " + weather);
// You can also force an update
api.forceUpdate(lobbyWorld);
}
}
</details>
Download xDay and take absolute control over your worlds' atmosphere!
评论 0
登录后参与评分
还没有评论,来抢沙发吧