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
Hello, the plugin works great, just even if the player don't have the permission, the /sleepy command is still showing in the /help list, can you fix it please?
Hey! I have a feature request. I use Multiverse and have a separate Creative and Survival world, and I'd really like if there was a config option to essentially limit the Sleep message to the world it was done in (ie, only people in "main-world" will get a sleep message when X player sleeps in "main-world", players in "creative-world" won't see the message).
In addition, if there was a way to make the limit of players only affect the main-world, that'd be ideal too.
In reply to NyctoDarkMatter:
I'll look into it!
Hey! I really like this plugin but whenever I die I don't respawn on my bed. Is this intentional?
In reply to notcoldfridge:
It is not, and will be fixed in the next version.
Should leave an option in the config to skip thunders and rain.
Cannot skip thunder: When the specified percentage is reached while thunder, it just completes the sleep and announces it. Thunder is still going
In reply to Forge_User_14870541:
It's coming in the next version. Unfortunately my project file was lost, so I'm remaking the whole thing.
The plugin doesnt work for some reason. When a player enters a bed it doesnt announce it, doesnt give any other message and only announces when a player leaves the bed. In console it only gives this message
[Sun, 24. Mar 2019 17:09:50 UTC ERROR] Could not pass event PlayerBedEnterEvent to Sleepy v1.3b
Running Experimental Bukkit 1.13.2 Server
In reply to Forge_User_54009373:
I'll look into it :)
In reply to audunhov:
Any progress?
hey audunhov
your plugin does not alert when a player enters a bed: only when they leave
thank you for making this plugin, it has every configurable setting i desire, it's sad to see some of them not functioning
running version 1.13.2-R0.1, no feedback from console when players enter a bed and announcesleep is set to true
In reply to Forge_User_87195661:
In reply to audunhov:
In reply to Forge_User_87195661:
In reply to Forge_User_87195661: