Catworms-咖波
本帖最后由 Catworms-咖波 于 2022-11-7 20:57 编辑

服务器里都是建筑玩家,晚上怕被苦力怕炸,但是也有喜欢乱跑晚上不睡觉的,怎么设置最小睡觉人数 俩人躺下就能跳过夜晚 1.19.1版本  
我是paper核心  如果有插件也可以  放个链接就好

__FELT
我知道的服务端似乎只有purpur purpur.yml里有个sleeping-players-percent的选项 其他服务端就只能用插件了

https://purpurmc.org/docs/Configuration/sleep-skipping-night

无敌三脚猫
50%的人睡觉即可跳过夜晚
  1. /gamerule playersSleepingPercentage 50
复制代码
原版只有这个设置人数百分比的,不能设置人数
如果设置成0只需要一个玩家睡觉就能跳过夜晚

poikcue
本帖最后由 poikcue 于 2022-11-8 16:33 编辑
__FELT 发表于 2022-11-7 20:56
我知道的服务端似乎只有purpur purpur.yml里有个sleeping-players-percent的选项 其他服务端就只能用插件了 ...
sleeping-players-percent
- default: default
- description: The actionbar message that appears when a player is asleep. Set to "default" to let the clients use their own translatable components. Set to an empty string to disable it. Available placeholders: <count> - the current amount of players sleeping, <total> - the total amount of players needed to sleep

这似乎不是跳过夜晚所需人数百分比?