✦ 描述
通过设置睡眠阈值、动画和投票机制来自定义跳过夜晚的行为。所有功能均可在配置文件中自定义。
✦ 功能
- 根据在线玩家中处于睡眠状态的百分比来跳过夜晚。
- 通过可配置的投票系统跳过夜晚。
- 播放跳过夜晚的动画效果。
- 完全可配置的聊天消息,支持颜色代码或 Minimessage 格式。
- 支持多世界环境,每个世界拥有独立的睡眠周期和追踪记录。
- 支持结合 GSit 插件实现躺下睡觉。
- 支持忽略 Essentials 中的 AFK(空闲)玩家。
✦ 权限
sleeper.sleep- 允许使用/sleep命令及其子命令。sleeper.vote- 允许使用/sleep yes和/sleep no进行投票。sleeper.reload- 允许使用/sleep reload重新加载配置文件。sleeper.ignore- 允许使用/sleep ignore让自己被排除在睡眠统计之外。sleeper.data- 允许使用/sleep debug查看调试信息。
✦ 命令
/sleep- 主命令,包含以下子命令:yes, no, votes, ignore, debug, reload(需要权限 sleeper.sleep)。ignore子命令可接受两个可选参数:/sleep ignore <Player> <True/False>
✦ 配置/设置
最新版本的配置文件可在 此处 获取。
配置项说明:
插件设置
- CheckForUpdates - 切换是否通过 Spigot API 检查更新。
- FormattingType - 在 "minecraft"(颜色代码)和 "minimessage" 之间切换,以格式化消息。
主要设置
- UseAnimation - 切换跳过夜晚时是否播放动画。
- SkipPercentage - 触发跳过夜晚所需的在线玩家睡眠比例。
- SkipSpeed - 跳过夜晚动画的速度。
- DelaySleep - 切换进入床铺后是否延迟开始计算睡眠。
- DelaySeconds - 设置上述延迟的秒数。
- ActionbarMessages - 切换是否通过动作栏发送消息。
- PersistentSleepInfo - 切换是否在下方指定的时间内持续在动作栏显示睡眠信息。
- PersistenceTime - 对于上述设置,在动作栏显示睡眠信息的持续时间(秒)。
- DayTime - 被视为早晨的时间点。夜晚将在此时间点之前被跳过。
- NightTime - 被视为夜晚开始的时间点。允许在此之后进行投票或使用 GSit 睡觉。
- BroadcastSleepInfo - 切换是将睡眠信息广播给所有人,还是仅发送给正在睡觉的玩家。
投票设置
- VoteSkip - 切换是否启用投票跳过功能。
- YesMultiplier - “赞成”票数的倍率,用于增强或削弱其权重。
- NoMultiplier - “反对”票数的倍率,用于增强或削弱其权重。
- SkipVotePercent - 基于投票跳过夜晚所需的百分比。计算公式为:(赞成票数 - 反对票数) / 在线玩家总数。
- BlockBedsAfterVoting - 投票后禁止进入床铺。进入床铺时也会自动投出赞成票。
- BossbarVoteCount - 在主标题栏(Bossbar)上显示当前投票情况。
- ActionbarVoteCount - 在动作栏上显示当前投票情况。
- SendVotesOnStart - 切换在投票开始时是否发送投票选项提示。
- StartWithoutSleep - 允许仅通过投票命令启动投票,无需实际睡觉。
- MaxVoteTime - 对应下方设置的投票最大时间(秒)。
- LimitedVoteTime - 限制投票时间不超过上述设定值。
插件集成设置
- GSitPoseToSleep - 切换使用 GSit 躺下是否算作睡眠状态。
- IgnoreAFKPlayers - 切换是否忽略 Essentials 中的 AFK(空闲)玩家。
在上述配置项之后是插件使用的可配置消息。如果将这些消息在配置文件中留空,则可以禁用睡眠信息和跳过通知。
✦ 问题/故障反馈
请在 GitHub Issue 跟踪器上报告任何遇到的问题或故障。
✦ 链接
✦ Description
Customize your night skips with a set sleep threshold, animation, and voting. All customizable in the config.
✦ Features
- Skip the night with a percentage of players sleeping.
- Skip the night with a configurable voting system.
- Animate skipping the night.
- Fully configurable chat messages, with support for color codes or Minimessage.
- Support for multiple worlds with independent sleep cycles and tracking.
- Support for lying down with GSit to sleep.
- Support for ignoring Essentials AFK players.
✦ Permissions
- sleeper.sleep - Allow the use of '/sleep' to access it's sub-commands.
- sleeper.vote - Allow voting with '/sleep yes' and '/sleep no'.
- sleeper.reload - Allow the use of '/sleep reload' to reload the config.
- sleeper.ignore - Allow the use of '/sleep ignore' to be ignored for sleep.
- sleeper.data - Allows the use of '/sleep debug' to see debug information.
✦ Commands
- /sleep - Main command, which contains all the subcommands: yes, no, votes, ignore, debug, reload (sleeper.sleep). The ignore subcommand can take two optional paremeters: /sleep ignore <Player> <True/False>
✦ Config/Setup
An up to date config is available here.
Config Values:
Plugin settings
- CheckForUpdates - Toggle update checking by checking the Spigot api.
- FormattingType - Switch between "minecraft" and "minimessage" to format messages with color codes or minimessage.
Main settings
- UseAnimation - Toggle if skipping is animated or not.
- SkipPercentage - Percentage of online players sleeping to skip the night at.
- SkipSpeed - Speed for the skip animation.
- DelaySleep - Toggle a delay for sleeping after entering a bed.
- DelaySeconds - Set the above delay in seconds.
- ActionbarMessages - Toggle sending messages through the action bar.
- PersistentSleepInfo - Toggle keeping sleep info messages on the actionbar for the below time.
- PersistenceTime - Time to show sleep info on the actionbar in seconds, for the above setting.
- DayTime - The time considered morning. Nights will be skipped up to this time.
- NightTime - The time considered the the start of the night. Allows voting or sleeping with GSit.
- BroadcastSleepInfo - Toggle broadcasting sleep info to everyone instead of just the sleeper.
Voting settings
- VoteSkip - Toggle skip votes.
- YesMultiplier - Multiplier for yes votes to boost or nerf their value.
- NoMultiplier - Multiplier for no votes to boost or nerf their value.
- SkipVotePercent - Percent for skipping based on a vote. Calculated as yes votes minus no votes, divided by the amount of online players.
- BlockBedsAfterVoting - Blocks entering a bed after you've voted. Also automatically votes yes when entering a bed.
- BossbarVoteCount - Display the current vote on the bossbar.
- ActionbarVoteCount - Display the current vote on the actionbar.
- SendVotesOnStart - Toggle sending the vote options when a vote starts.
- StartWithoutSleep - Allow starting votes with the vote commands themselves.
- MaxVoteTime - The time in seconds for the below setting.
- LimitedVoteTime - Limit voting time to the above setting.
Plugin integration settings
- GSitPoseToSleep - Toggle lying down with GSit counting as sleeping.
- IgnoreAFKPlayers - Toggle ignoring players AFK with Essentials.
After these config values there are configurable messages used by the plugin. The sleep info and skip messages can be disabled by setting them as blank in the config.
✦ Issues/Problems
Please report any issues or problems on the github issue tracker.
✦ Links
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sleeper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 由于 Minimessage Bukkit 平台层已被弃用并导致消息解析出错,现已移除。因此,现在必须使用支持 Minimessage 的服务器。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
评论 0
登录后参与评分
还没有评论,来抢沙发吧