This is a quick update that fixes a bug where servers running PlayerActivity would ignore idle and away players in the player count (
75a916b) and brings compatibility for Minecraft 1.20.5 and 1.20.6 (
9f7263b).
This update refactors a ton of code to make things more clear and squash many outstanding bugs and issues:
The messages class to make it more readable both in the class and serialized form and rely on components and placeholders instead of MiniMessage serialization when not necessary (f8a4e3e, f2bf0bd).
The Vote and FastForward classes are completely reworked to be more clear and fix bugs (bd4d2b2).
As well, this implements the Cloud Command Framework to retire ACF (6d23ceb, b45cc15).
Last, this implements MockBukkit to provide unit testing for various functions of the plugin (ab17168).
This version of SkipNight changes a lot under the hood about how configuration files are handled as well as contains a few new features and bug fixes:
Migrate from ConfigManager to Configurate. This change allows the use of HOCON based configuration files. `config.yml` is now `config.conf` and a new `messages.conf` file has been added allowing users to modify every string found in the plugin to suit their needs. The old `config.yml` file will be converted automatically on first startup.
Migrate from ChatComponentAPI] to Adventure MiniMessage. This change is also necessary to better suit user editing of strings as mentioned above.
A few logic errors have been fixed.
Players in beds when a vote to skip the night starts will now automatically vote yes instead of being prompted to vote.
There are now separate permissions for skipnight and skipday commands.
The ability to disable phantom support, as in disallowing players to vote phantoms will attack them (they haven't slept for 3 days).
This version fixes compatibility with other plugins using different versions of
ConfigManager. ConfigManager needs to be shaded/relocated to avoid conflicts.
A previous release had some bad logic causing the join/enter bed events to unregister. This meant that players entering beds wouldn't get added to a skip night vote and players wouldn't be stricken from the vote when leaving the server. This has been fixed.
This update adds an option to skip the day as well as the night. A configuration option is available to enable or disable either. Simply restart your server after configuration to apply changes.