SinglePlayerSleep icon

SinglePlayerSleep -----

Allows one person to sleep, without others on server having to sleep or log.




D1 Fixed server version comparer to work with Paper.
D2 Fixed issue with messages and sleep commands.
D3 Fix color formating. Changed min version to 1.16
D4 Fixed message copier.
D5 Fixed Random Message selector.
D6 Fixed issue with hexcode updater.
D7 Fixed pattern for Standard Hex codes, Now converts Legacy codes to Hex.
D8 Added parser for legacy format codes to MiniMessage Tags.
----------, Aug 22, 2024

D1 Switched color parser to mimic EssentialsX.
D2 Added fileVersions.yml, split sleepmsgs into messages.yml
D3 Fixed missed message parser locations.
----------, Jul 22, 2024

D1 Fixed DaySkip cancel msg = null.
D2 Fixed an issue where SPS would broadcast twice.
D3 Added new permission sps.showCancelledMsg
D4 Removed Birthday Message code.
D5 Added better error and log handling
D6 Minor tweaks.
D7 Dayskip will now work with any Bed.
D8 Fixed a bug in dayskip code that would allow regular sleep code to run.
D9 Added more logging to Dayskip to find a bug.
D10 Fixed bed detector for Dayskip.
D11 Fixed spscancel, update, sleep, and dayskip commands.
----------, Jul 7, 2024

D1 Added a config option for when a nickname is not set to use displayname or username.
D2 Added debug logs for previous changes.
D3 Added more debug code, and changed some defaults.
D4 Switched to i18n language files, reworked update checker.
----------, Jun 8, 2023

2.13.49
D1- Added support for Bloodmoon Advanced.
D2- Added a check for DisplayName when Essentials nick is returned as null.
D3- Added color formatter for displayNames when Essentials/VentureChat/HexNicks returns null
D4- Changed method for formatting displayNames in re: above.
D5 Added debug checks on nickname getter.
D6 Fixed issue with chars in HexNicks nicknames.
----------, Jan 14, 2023

D1- Added HexNicks support.
D2-3 Fixed HexNicks formatting.
D4- Finally fixed HexNicks json formatting.
D5- Minor changes to UpdateChecker Notifications.
----------, Aug 2, 2022

Added permission debug logging, "/sps check", and "/sps check playername" commands.
Anyone can check their own permissions, but only people with sps.op can check permissions of others.
Fixed an issue with update command causing a NPE.
Fixed an issue with the /sleep command always using world 0 as the Night/Storm check world.
Changed reloading method, added simplified Chinese(zh_CN) translation from (NagaseYami)
Added new config option "reset_insomnia" to reset the stat "time_since_rest" for all players in the sleeping player's world to prevent phantom spawning
Fixed text formatting with nicknames.
Added Japanese (ja_JP) translation from (mtmtyu)
----------, Jan 29, 2022

Fixed issue of broadcasting to world's not where sleep, cancel, dayskip were initiated.
Added config option for per world broadcasting.
Fixed issue of a floating bracket.
Fixed a minor bug involving an exception and a possible console spam.
Players with sps.unrestricted permission will have color sleepmsgs.
Fixed incomplete text issue.
Added new config option. exitbedcancel: false
Added tab complete for commands.
----------, Feb 28, 2021


Fixed a small bit of debug code that would spam console, that was not meant to be in release.
----------, Oct 31, 2020

UpdateChecker update, should no longer say there is an update when using a Dev version.
/sps update, now runs Asynchronously, which should not cause server freeze.
Added configs for Blacklist sleep/dayskip.
Added cancelbracketcolor config, to set the color of the brackets of [CANCEL].
Added colorful_console config, Enables fancy ANSI colors in console.
Fixed a config issue.
----------, Oct 30, 2020

Added color support in sleepmsgs.

Added RGB Color support in sleepmsgs.

Added color codes both <COLOR> and §xRRGGBB to sleepmsgs

Added Color and RGB Color support to the dayskipmsg (Edited via lang files.)

Changed getDisplayName to getName to remove prefixes added by other plugins.

Added Quotation marks around playername in the tellraw command of sendJson. (Added by ImDaBigBoss)

sleepmsgcolor and playernamecolor will be obsolete in the next version, but are needed for now.
----------, Sep 18, 2020

Fix for 1.13_2.13.43
To use colons in sleep messages use <colon>
----------, Aug 13, 2020

Added support for NickNames from VentureChat and Essentials.
Added support for colored Nicknames.
----------, Aug 13, 2020

Fixed issue of sleep message broadcast not happening in 1.16.1 in some servers.
Also removed ANSI coding from plugin messages.
----------, Jun 30, 2020

Fixed issue of sleep message broadcast not happening in 1.16.
----------, Jun 26, 2020

fixed an error where sometimes iscanceled would become locked as true, not allowing canceling of sleep.
added a new spam checker for sleep and cancel.
it is now user based, and not world based.
Should be multiverse compatible.
added cancellimit: 60 to config.yml
Added config file updater, copies old configs to new config file.
----------, May 15, 2020

BugFix: Monsters nearby will cancel sleep.
Added more debug info.
sps.cancel has been changed to default: true
----------, Apr 9, 2020

Plugin will kick all players in bed out of bed, even players in creative.
----------, Mar 31, 2020

Fixed bug that would cause exceptions if a player had no bed spawn set.
Added config to disable display of CANCEL in the sleep message. /cancel still works.
----------, Mar 25, 2020

Fixed an issue with Respawn point setting and MC 1.15.
Plugin will no longer set respawn point for MC 1.15+
Plugin will still set respawn point for MC versions under 1.15.
----------, Mar 16, 2020

Added new config enabledayskipper default is false, set to true to turn on dayskipper.
Added a chat notice of reloading plugin for /sps reload
If bedspawn is already set to the bed you try to sleep in, it will not spam chat.
Added es_MX.yml
/sps update uses new update check method, and will not lag the server.
Other minor tweaks to reduce spam, and cheating.
----------, Feb 24, 2020

Changed update checking to only check on plugin enable, and to let those with permission know that an update is available. This should reduce any lag the plugin may have to a minimum.
added a requested config for "notifymustbenight" default is false.
added a lang variable for "respawnpointmsg" will now say Respawn point set, or whatever you change it to in the lang file.
changed lang files to be language specific lang/en_US.yml instead of lang.yml
some minor tweaks to code to streamline and simplify how SPS works.
To report any issues please start an issue on the SinglePlayerSleep github repository with debug=true, and a full log.
----------, Feb 8, 2020

New version scheme that still continues the old scheme.
New method of broadcasting messages that is not version specific.
Should now work with all versions of Minecraft from 1.13 through 1.15.1+ and should even work with 1.16.
Tested in spigot 1.13, 1.14, and 1.15, and paper 1.14.4.
----------, Dec 30, 2019

The 1.15 update.
----------, Dec 11, 2019

New feature starting 2.13.31, DaySkipper: A player with a Black bed, and the sps.dayskipper permission may skip the day to night, also can require an item named DaySkipper in config.yml.
----------, Dec 11, 2019

Added Portuguese (pt_BR) to lang.yml.
Minor changes to update checker, to notify server owner of an update.
Changed time you may enter bed/use sleep command to be 12600 instead of 13000.
----------, Dec 3, 2019

Added a requested feature, sleepdelay.
This config variable allows you to set the sleep delay in seconds between the time you sleep and the time is changed to day.

Also added Czech language, and some tweaks to onEnable/Disable as well as debug logging.

Also fixed a bug where sleepmsgs over 54 characters would not retain the color in the chat, if chat was set to ~320px/small.
----------, Nov 30, 2019

Added new permission sps.showUpdateAvailable - If an update is available this permission will notify the player with the permission that there is an update.

Fixed a bug that would cause an exception error with PaperMC when a player used the /cancel command, or if the player tried to sleep with the permission sps.unrestricted. If you use PaperMC and experience any issues please go to the github and start an issue ticket.
----------, Nov 21, 2019

Switched from mcstats to bStats, can be turned of in \plugins\bStats\config.yml
So that I can know how the plugin is being used without identifying statistics.

Added a config.yml check so you don't have to delete the config.yml file during plugin updates.

Added another feature suggested by H8RMinecraft,
You can now choose to either set the time to 23000 (Early/Sunrise), or 24000 (Normal/Vanilla) in the config.yml
----------, Nov 20, 2019

Added a requested feature from H8RMinecraft.
Please delete your old config.yml, and lang.yml files in the plugins/singleplayersleep folder.

Plugin now has custom sleeping messages settable in config.yml.
Code (Text):
# Set to true to use random sleep msgs.
randomsleepmsgs: true
# Set to the number of sleep msgs
numberofsleepmsgs: 4
# Set msgs for random sleep msgs here "sleepmsg#: <player> msg here"
# Don't forget the space between : and the start of the message.
sleepmsg1: <player> is sleeping
sleepmsg2: <player> went to bed. Sweet dreams
sleepmsg3: Shhh! <player> is trying to sleep!
sleepmsg4: <player> is asleep at the wheel
Also fixed is custom sleep message colors, settable in config.yml.
Code (Text):
# Set the color of the [CANCEL] link text in broadcast messages. Format RED
# Colors: AQUA, BLACK, GOLD, GRAY, BLUE, GREEN, RED, YELLOW, WHITE
# DARK_AQUA, DARK_BLUE, DARK_GRAY, DARK_GREEN, DARK_RED, DARK_PURPLE, LIGHT_PURPLE
# MAGIC, BOLD, STRIKETHROUGH, UNDERLINE, ITALIC, RESET
cancelcolor: RED
# Sleep message color, use either YELLOW
sleepmsgcolor: YELLOW
# Player name color, use either WHITE
playernamecolor: WHITE
----------, Nov 16, 2019

fixed a minor bug where if cancelbroadcast was set to false, that SPS would still broadcast the cancel message.
added some minor tweaks, debug code is easier to see in server logs with Ansi codes.
----------, Sep 29, 2019

fixed a bug with my debug code that might spam the console log.
----------, Jun 24, 2019

MC 1.14 update, cleaned up some code, and added features, minor bug fixes for 1.14
added ability to sleep during thunderstorm
added unrestricted sleep(in config.yml)
added anti spam feature (settable in config.yml)
new permission:
sps.unrestricted allows the player with the permission to sleep without others being able to cancel it.
----------, Jun 24, 2019

MC 1.14 update
version check update
minor update from 2.13.19 that removes some debug code
----------, Jun 23, 2019

MC 1.14 update
----------, Jun 23, 2019

MC 1.13.1, 1.13.2 update
----------, Jun 9, 2019

MC 1.13 update
----------, Jun 9, 2019

MC 1.13 update
----------, Jun 9, 2019

Resource Information
Author:
----------
Total Downloads: 101,251
First Release: Jun 9, 2019
Last Update: Aug 22, 2024
Category: ---------------
All-Time Rating:
19 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings