If you come from a previous version: please delete config.yml and reload your server or change 'world_specific_behavior' into 'multiworld_support'! Otherwise that setting will be ignored!
Resetting lang.yml is also recommended, as new tags (for example <amount>) were added in some messages. Alternatively, those can also be found on the plugin page under 'configuration'.
BetterSleeping was completely rewritten, improving maintainability a lot. Many bugs were fixed.
Keep in mind that the plugin is in BETA, some bugs might be lurking around the corner!
- The built-in reload system was simplified so less internal mistakes will happen
- '/bs reload' can now be used too, and has the same effect as /bettersleeping reload
- Tab auto complete has been implemented for /bettersleeping reload
- Configuration was rebuilt, became more modular and has a better structure altogether
- Adding configuration options will be much easier for me from now on
- 'World_specific_behavior' is now called 'multiworld_support'
- The option 'multiworld_support' is now true by default
- The default 'cancelled'-message has been changed and includes the amount of extra players that are required
- Players are now given the time they have to wait before they can sleep again (in 'sleep_spam', with '<time>')
- If a configuration option is not found, the default option will be loaded from within the jar file but the console will not be notified
- Multiworld mode and regular mode were rewritten and now use the same core systems
- Added an in-built debugging system, for developer use only. If you want to use this system for some reason, let me know and I'll let you know how.
- Unit testing has been implemented, by using PowerMockito but is not being used yet
- Merged OnSleepEventGlobal and OnSleepEventLocal to reduce duplicate code, the functionality was maintained
- Removed 'good morning'- and 'good night'-messages in the console on startup/poweroff
- A whole bunch of bugs were fixed (this was at least 50% of the work)
- Old bugs were fixed by rewriting pretty much everything
- New bugs were introduced (as expected) and fixed (as far as I know)
- Even had to battle bugs that crawled into the plugin because of default Minecraft/Spigot mechanics
- Removed Freddy Krueger
KNOWN ISSUES
For more information about those, feel free to ask me!
- Only if a storm (not night) is skipped: There is a slight delay before a players leave their bed automatically. This can currently not be patched.
- The following occurs if a player has been waiting to skip the night for a while (screen is darkened) and suddenly all online players get in their bed:
- The default Minecraft/Spigot mechanic takes over and wants to skip the night instantly. This has partially been patched by acting quicker than this default mechanic.
- This does mean that the 'sleep_delay' in config.yml will be ignored in this instance. This can not be fixed, the alternative is people getting wrong messages from the plugin and the night being skipped instantly regardless.
TO DO
For a to-do-list, please check the Spigot plugin page (at the bottom). This update text is long enough in my opinion.
