Sleepy 是一款简单的插件,旨在让多人游戏中的睡眠变得更加轻松。
你是否曾注意到,让几个朋友同时入睡是一件多么令人头疼的事?试想一下,如果是让整个服务器的玩家一起入睡,那简直是一项几乎不可能完成的任务。Sleepy 正是为此而生的解决方案。
使用 Sleepy,你只需设定一个百分比或特定数量的玩家入睡,即可改变游戏时间。
工作原理:
当有玩家上床睡觉时,聊天栏会微妙地显示提示信息,告知该玩家已入睡,以及还需要多少名玩家入睡。 如果所需玩家数量尚未达标,而有玩家提前离开床铺,聊天栏也会相应提示。
当达到所需的入睡玩家数量(默认为 25%)时,游戏时间将变为清晨。就是这么简单。
特性包括:
- 大多数服务器无需设置
- 游戏内配置编辑器
- 权限支持
- 聊天通知(可禁用)
- 完全自定义的消息
命令:
/sleepy target [new target] - 显示当前目标值(无参数时),或设置新目标(有参数时)
/sleepy - 显示插件信息
/sleepy config [config option] [new value] - 查看或编辑配置文件。若无参数,该命令将显示所有选项。
/sleepy reload - 重新加载配置文件,适用于您在游戏外编辑文件的情况
默认情况下,所有人都可以使用 '/sleepy target' 和 '/sleepy' 命令,但只有管理员(ops)才能使用 '/sleepy target [新值]'、'/sleepy config' 和 '/sleepy reload'。权限可以由管理员进行修改。
有用的配置选项:
聊天警报:
- 当玩家上床睡觉或离开床时提醒聊天(默认):/sleepy config announcesleep true
- 不提醒聊天:/sleepy config announcesleep false
目标格式(使用相同的目标值):
- 百分比(默认):/sleepy config usepercentage true
- 数量:/sleepy config usepercentage false
占位符:
- 将这些添加到 Sleepy 的消息中以提供有用信息
- '%p' = 当前玩家的名称
- '%t' = 当前的目标值
- '%np' = 需要睡觉的玩家数量
- '%sp' = 正在睡觉的玩家数量
- '%op' = 在线玩家总数
- '%pc' = 正在睡觉的在线玩家比例
这些占位符可以与颜色结合使用,通过 '&' 符号并使用标准的格式化代码:

权限:
- sleepy.* - 访问所有 Sleepy 命令
- sleepy.target - 查看目标的权限,使用 /sleepy target 命令
- sleepy.set - 设置新目标的权限,使用 /sleepy target 命令
- sleepy.reload - 使用 /sleepy reload 命令的权限
- sleepy.config - 用于访问 /sleepy 配置命令
Sleepy is a simple plugin that makes multiplayer sleep easier.
Have you ever noticed how annoying it is to get a couple of friends to sleep at once? Now try that with a whole server, and you're looking at a task which is practically impossible. Sleepy is the solution.
With Sleepy you only need a percentage or certain amount of players to sleep in order change the time.
How it works:
When a player goes to bed, the chat is subltly noted, telling them who went to bed, and how many more players need to sleep. The chat is also noted when a player leaves their bed before enough required players are sleeping.
When the required amount of players are sleeping (default 25%), the time is set to morning. It's as simple as that.
Features include:
- No setup for most servers
- In-game config editor
- Permission support
- Chat notifications (can be disabled)
- Fully customizable messages
Commands:
/sleepy target [new target] - displays the current target value (without arguments), or sets a new target (with arguments)
/sleepy - displays plugin info
/sleepy config [config option] [new value] - view or edit the config file. Without arguments, the commands displays all options.
/sleepy reload - reloads the config file, if you decide to edit the file outside of the game
By default, everyone can use '/sleepy target' and '/sleepy', but only ops can use '/sleepy target [new value], '/sleepy config', and '/sleepy reload'. Permissions can be changed by an admin
Useful config options:
Chat alerts:
- Alert chat when players go to, or leave their bed (default): /sleepy config announcesleep true
- Don't alert chat: /sleepy config announcesleep false
Target format (uses the same target value):
- Percentage (default): /sleepy config usepercentage true
- Amount: /sleepy config usepercentage false
Placeholders:
- Add these to Sleepy messages to give useful information
- '%p' = the current players name
- '%t' = the current target value
- '%np' = amount of players needed to sleep
- '%sp' = amount of sleeping players
- '%op' = amount of online players
- '%pc' = percentage of online players who is sleeping
These can be combined with colors using the '&'-symbol, by using the standard formatting codes:

Permissions:
- sleepy.* - Access to all Sleepy commands
- sleepy.target - Access to view the target with /sleepy target
- sleepy.set - Access to the set new target with /sleepy target
- sleepy.reload - Access to the /sleepy reload command
- sleepy.config - Access to the /sleepy config command
评论 0
登录后参与评分
还没有评论,来抢沙发吧