AnyoneSleep - Any player sleeping skips the night! Version: v1.3 (CraftBukkit build #935) This small plugin allows ANY player to skip the night time of the server by sleeping in a bed (without having to wait for ALL other players to get into beds aswell). If some of the players are AFK (or deep in their mines without a bed) other active players don't have to endure night time while waiting for everyone to use a bed. Features: Any player can skip the night by sleeping in a bed. No need to wait for any other players to get into bed. Multi-world support. Sleeping is world-based! Support for the Permissions plugin (tested with 3.1.5b and 2.7.4, usage is optional) Multi-world permissions support (including nether)! In-game commands To check current status of the plugin To enable/disable sleeping altogether Uses a configuration file to persistantly keep settings. Download: AnyoneSleep v1.3 (.jar only) Installation: Download and place "AnyoneSleep.jar" file into the "plugin" directory of the server. Start/restart the server to have the plugin loaded (or use a plugin manager) (optional) Make changes in the configuration file Read the "Configuration File" section below for details.. (if using Permissions) Grant desired permission nodes to users or groups Read the "Permissions" section below for details.. Commands: Permissions / Configuration file: Show permissions and configuration info (Move your mouse to reveal the content) Show permissions and configuration info (open) Show permissions and configuration info (close) Permissions: Permissions plugin usage is optional. If you are not using it the plugin will default to using the regular "ops.txt" (all commands will be enabled for all ops). If you are using permissions but you do not want it to apply to this plugin there is an option to make the plugin "static" via the configuration file (read below) The plugin utilizes the following permission nodes: anyonesleep.toggle - allow player to toggle sleeping for the server Commands enabled: /as toggle Special additional permission: anyonesleep.cansleep - allow player to sleep even if sleeping is disabled for the server _____________________________________________________ Configuration file: In case the configuration file doesn't exist it is created automatically with default values when the plugin is loaded. This means you probably don't need to worry about it at all! Configuration file uses the .yml format (no tabs and be careful with spaces!) and will be at "plugins/InstaBreak/config.yml". The default (with added comments) is as follows: Code: config: dynamic: #These dynamic configuration settings can be changed with in-game commands aswell (read more in the commands section above). enableforall: true #When set to "true" any player can pass the nigth using a bed. When set to "false" only ops (or players with special permission node) can sleep! Changelog: Show changelog (Move your mouse to reveal the content) Show changelog (open) Show changelog (close) AnyoneSleep v1.3, released on June 19th Fixed multi-world sleeping! Plugin should now correctly handle a situation if two players in different worlds sleep at (roughly) the same time. Word-based announcement "Player took a nap" message is now world-based (as opposed to being server-wide). AnyoneSleep v1.2, released on June 17th Made sleeping non-instant! Player will sway in bed for roughly 5 seconds. Mobs can disrupt sleeping Added in game commands! Command to disable sleeping for the whole server in case admin wants it to be night time. This can also be set in the configuration file. Added Permissions plugin support! Check the "Permissions" section above for more details.. Added a configuration file! This plugin now utilizes a configuration file to persistantly keep settings. Check the "Configuration file" section above for more details.. AnyoneSleep v1.1, released on May 11th Fixed the two issues explained in detailed in this post here. Added a server-wide announcement in case a player sleeps to pass the night. This will only occur if there are more than one players in the server.. Plugin no longer depends on the isSleepingIgnored() feature added since CraftBukkit #671 Should work with any CraftBukkit version.. AnyoneSleep v1.0 Initial version Known issues / Future ideas: Show issues and ideas (Move your mouse to reveal the content) Show issues and ideas (open) Show issues and ideas (close) Known issues: Non-sleeping players (who have never slept in a bed) get a number of mobs spawned around them. fixed in v1.1 Players (who have their spawn point set to their bed by sleeping) get teleported to their beds if time skips to the morning (in the result of any random player sleeping). fixed in v1.1 Future ideas: Make a server-wide announcement if the night is skipped by a player sleeping (and who) done in v1.1 Maybe implement functionality to disable sleeping for some players (in case someone abuses it)? not needed since v1.2 Make sleeping more like the un-modified sleeping (fade to black, stay in bed longer, allow mobs to disrupt sleeping) done in v1.2 Make sleeping toggleable by in-game command done in v1.2 Like this plugin? Why not make a donation to show your support! Any amount will be appreciated!