NightRest 是一款轻量级且可配置的 Minecraft 服务器睡眠插件。它改变了通常的睡眠机制,让服务器管理员可以决定需要多少名符合条件的玩家入睡才能跳过夜晚,同时保持设置简单易懂。
与要求所有玩家入睡不同,NightRest 支持三种睡眠模式:
- 单人(Single) —— 只需一名符合条件的玩家即可跳过夜晚。
- 数量(Amount) —— 必须有特定数量的符合条件玩家入睡。
- 百分比(Percentage) —— 必须有特定比例的在线符合条件玩家入睡。
所需玩家数量是根据插件设置中当前符合条件的玩家计算得出的。服务器可以选择将玩家按整个服务器统一计算,还是按世界单独计算。
⚠️重要提示:
NightRest 由 CoolSantyx 开发并维护。此 Modrinth 页面是 NightRest 下载、更新和更新日志的官方来源。
睡眠控制
NightRest 提供了多种选项来控制哪些玩家可以计入睡眠计数:
- 设置最少在线玩家数量。
- 按世界或整个服务器统计玩家。
- 从睡眠计数中排除旁观者。
- 使用可配置权限排除特定玩家。
- 通过白名单或黑名单设置,将 NightRest 限制在选定的世界中。
- 可选地限制插件仅适用于主世界(Overworld)。
- 配置 NightRest 认为何时为夜晚。
- 允许或在雷暴期间禁用睡眠行为。
NightRest 还防止在达到配置的 NightRest 要求之前发生正常的原版夜晚跳过。
通知
睡眠通知完全可配置。你可以选择 NightRest 发送消息到聊天框,还是保持服务器静音。
聊天通知可以:
- 完全启用或禁用。
- 分别启用睡眠、跳过和测试消息的通知。
- 发送给服务器上的所有人,或仅发送给受影响世界中的玩家。
- 直接发送给玩家,或通过正常的 Bukkit 广播系统发送。
消息存储在语言文件中,因此可以在不更改插件本身的情况下自定义它们。支持颜色、多行、前缀、音效和占位符。
语言
NightRest 包含 9 种语言:
- 英语(美国)
- 英语(英国)
- 西班牙语(阿根廷)
- 西班牙语(西班牙)
- 葡萄牙语(巴西)
- 德语
- 意大利语
- 俄语
- 法语
默认语言为 英语(美国),语言文件可以进行编辑以自定义插件的消息。
天气
NightRest 还可以控制当夜晚被跳过时,雨和雷暴的行为。这些设置是可选的,并在适当情况下默认禁用,因此安装插件不会意外改变服务器的天气行为。
管理
NightRest 包含简单的命令来管理和排查插件问题,包括配置重载、状态信息、版本信息和聊天测试。
配置更改可以在不重启服务器的情况下重新加载。
兼容性
NightRest 是一个服务端插件,不需要玩家在客户端安装任何内容。它也不需要任何第三方插件或外部依赖。
该插件基于公共 Bukkit/Paper API 设计,针对使用 Java 17 或更高版本 的 Minecraft 服务器。
NightRest 旨在为那些希望拥有可靠且灵活的睡眠系统,而不需要不必要的复杂性或大量无关功能的服务器管理员提供服务。
NightRest is a lightweight and configurable sleep plugin for Minecraft servers. It changes the usual sleep requirement so server owners can decide how many eligible players need to sleep before the night is skipped, while keeping the setup simple and easy to understand.
Instead of requiring every player to sleep, NightRest supports three sleep modes:
- Single — one eligible player is enough to skip the night.
- Amount — a specific number of eligible players must be sleeping.
- Percentage — a percentage of eligible online players must be sleeping.
The required number of players is calculated from the players who are currently eligible according to the plugin's settings. Servers can choose whether players are counted together across the server or separately by world.
⚠️IMPORTANT:
NightRest is developed and maintained by CoolSantyx. This Modrinth page is an official source for NightRest downloads, updates, and changelogs.
Sleep Controls
NightRest provides several options for controlling who can participate in the sleep count:
- Set a minimum number of online players.
- Count players per world or across the server.
- Exclude spectators from the sleep count.
- Exclude specific players using a configurable permission.
- Limit NightRest to selected worlds with whitelist or blacklist settings.
- Optionally limit the plugin to the Overworld.
- Configure when NightRest considers it to be nighttime.
- Allow or disable sleeping behavior during thunderstorms.
NightRest also protects against the normal vanilla night skip happening before the configured NightRest requirement is reached.
Notifications
Sleep notifications are fully configurable. You can choose whether NightRest sends messages to chat or keeps the server silent.
Chat notifications can be:
- Enabled or disabled completely.
- Enabled separately for sleep, skip, and test messages.
- Sent to everyone on the server or only players in the affected world.
- Delivered directly to players or through the normal Bukkit broadcast system.
Messages are stored in language files so they can be customized without changing the plugin itself. Colors, multiple lines, prefixes, sounds, and placeholders are supported.
Languages
NightRest includes 9 languages:
- English (US)
- English (UK)
- Spanish (Argentina)
- Spanish (Spain)
- Portuguese (Brazil)
- German
- Italian
- Russian
- French
The default language is English (US), and language files can be edited to customize the plugin's messages.
Weather
NightRest can also control how rain and thunderstorms behave when the night is skipped. These settings are optional and disabled by default where appropriate, so installing the plugin does not unexpectedly change a server's weather behavior.
Administration
NightRest includes simple commands for managing and troubleshooting the plugin, including configuration reload, status information, version information, and chat testing.
Configuration changes can be reloaded without restarting the server.
Compatibility
NightRest is a server-side plugin and does not require players to install anything on their clients. It does not require any third-party plugin or external dependency.
The plugin is designed around the public Bukkit/Paper API and targets Minecraft servers using Java 17 or newer.
NightRest is intended for server owners who want a reliable and flexible sleep system without unnecessary complexity or a large collection of unrelated features.
评论 0
登录后参与评分
还没有评论,来抢沙发吧