configure how long clear weather will last.
does not override longer times from commands.
Optionally sleep during rain at any time.
changed sleep fail messages to actionbars, replacing the vanilla messages
fixed an extraneous configuration check causing null messages
prevent world time overflow/loopback by stopping at no later than the configured stop time instead of incrementing past it.
fixes cancel message sometimes triggered at dawn
also manually clear weather again when exiting bed without a cancel message
fix cancel message on weather clear
shorten clear weather times to vanilla
fix world id lookup on some wakeups
colors in help menu
fixed sleep test command for console
cancel message will not pop up during a wakeup task, after sleep completes, or after night is skipped by the base game.
fixed colors in console
added cancel string to messages.yml
added some miscellaneous api functions
fix wrong api-version in plugin.yml
AAAAAAAAAAAAA
but it works
rewrote messaging function to support hex colors in sleep messages.
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FgrZzyVo.png)
switched from HashMap to ConcurrentHashmap to address a bug.
1-line fix for message lookup
fixed plugin not resetting its internal message list on plugin reload command
updated world name placeholder
made it refresh worlds.yml if it finds a world that it doesn't know about,
added checks in a bunch of places to handle bad inputs
cleaned up unused or duplicate code in a few events
fixed string replacement screwing up text.
fixed using the wrong config value for time increment
quick fix for afk/vanished players unexpectedly announcing their presence to the world.
- added a few logs for bad inputs
- added lang.yml to soften the logs, allow other languages
- moved command response config options from messages.yml to lang.yml
- moved start/stop times to world settings
- fixed config value lookups on join/leave events
- miscellaneous behavior fixes, like bed cooldown timing
includes config file updates, so check your file changes after updating
(2nd upload because of a typo)
fixed papi version number
fixed dimension placeholder check on load
Since the weather changed, here's another fix
fixed missing sleepingIgnored settings in config.yml
fixed some references to old settings, replaced with references to worlds.yml
fixed color on a console message
setting cancelBedExplode to true for a world should cancel bed explosions in that world
compiled with java 8, spigot 1.13.2 api for spigot 1.13-1.16
still needs testing with older versions
Spigot/Paper 1.17
Java 16
probably has a few kinks to work out. Post any new or unresolved bugs on the github issues page.
has new config files
Added console command functionality, using config options for server name and world
Added minimum player count setting. Set to 1 if you want a single active player to generate sleep messages.
Added worlds.cfg, autofilled with world names and default values at plugin enable
Added message lists, selected by world
Rather than just per-world time vs global time, synchronization is now managed on a case-by-case basis in worlds.cfg. This allowed arbitrary grouping and optimization of world selection. I also included environment placeholders for all worlds of an environment.
fixes an error on /reload command because I can't stop people from using it.
was getting an error on wakeup when not using placeholderAPI.
also added a bit of handling in case of bad message names in wakeup commands
split up and renamed config options and rewrote some code to consider them.
optimized iterators
optimized world name compare
You'll need to redo config if you're updating.
don't do nether/end bed explosion if doOtherDimensions is true
do bed explosions otherwise
bed explosion during daytime bugfix
also added time response and fixed a missing color code check
user has some sort of issue with messages not happening. I cannot replicate the problem, but I can make a guess that the issue is a bad sleepingIgnored setting from elsewhere.
Setting useSleepingIgnored to false may resolve the problem.
just placeholderapi updates
added bstats
cleaned up some leftover code
bugfix for previous version
- clicking a message now reacts to that message (instead of the last message sent), making message tests easier
- can do /sleep wakeup [message] and tab for a message name
- optimized player counts for this plugin's placeholders
- made it work better with plugin managers and with /reload
- can now do /sleep test to test a random message
- can do /sleep test [message] to test a specific message
- can click on the message to cancel time passing and see its response
- can do /sleep test [messages] to test a set of messages, though only the last message displayed will have its response used.
- made the "badArgs" response configurable to improve language compatibility
- fixed tab completion for partial commands so that only the matching subset is given.
update config version on config update
- if doOtherWorlds is true, sync weather changes
- updated weather duration
- minor bugfix
Added softdepend on PlaceholderAPI so you can use those placeholders if you have the plugin.
Added world list so that we can add world name placeholders as-needed.
messages.yml has been updated accordingly, so make sure to copy your changes.
note: the player sleeping will be different from the player calling wakeup, so the placeholder results will be different.
moved a line of code
fixed "no players sleeping" bug
fixed getting out of bed cancelling tasks that should continue
fixed world placeholders
(consolidated bug fixes into new version)
decoupled wakeup from sleep.see
fixed extra randomization
fixed wakeup
consolidated multi-world config options into doOtherWorlds and doOtherDimensions.
changed a bunch of code for world handling.
updated config.yml
updated messages.yml
fixed rain not clearing on wakeup with high stopTime values
java isn't handling loops correctly
when doing global sleep, the message shouldn't kick off twice
added configurable cooldown in ms for entering a bed
fixed some message issues
fixed per-player messages
fixed config overwrite
set default values for message stuff
added option to reset all players' sleep statistics
improved handling of config updates
added globalNightSkip config option to sync worlds on sleep
updated sleep event logic a bit
all messages have the same cantWakeup value for now but it can be changed on a per-message basis
made sleep.ignore false by default for testing purposes
added a message for sleep.bypass cases. I'll make it configurable later.
tested as far back as 1.11
Added help command & function
Simplified permission lookup
redid some of the wakeup logic
added sleep.bypass and sleep.ignore checks
removed extra imports and debug lines