NOTE! Due to big internal changes to Minecraft code and the way item serialization changed in this update, once item are loaded into 1.20.5/1.20.6 from older versions cannot be loaded back into pre 1.20.5 versions. So make sure you only sync 1.20.5/1.20.6 servers and not with older version as items saved with 1.20.5/1.20.6 will be unreadable with older versions and will lead to items being lost.
NOTE! Due to big internal changes to Minecraft code and the way item serialization changed in this update, once item are loaded into 1.20.5 from older versions cannot be loaded back into pre 1.20.5 versions. So make sure you only sync 1.20.5 servers and not with older version as items saved with 1.20.5 will be unreadable with older versions and will lead to items being lost.
Version 4 Note - This starts some important internal changes. Compatibility with older database version is 100% and this is one of the targets. Version 3 was designed with a much older API version and a lot changed in last updates so a need to update the core code in favor of the new versions is needed. Older API versions will still work but the code will be improved to target latest versions and also keep compatibility even this is getting harder and harder. This 4 major update will be completed with few more updates on each sync module and after that I will focus on bugfixes.
Added support for Spigot 1.18 API
Changes to Inventory, Armor and Gamemode sync module (internal code).
Fixed an error on health sync when health boost potion effect was applied on bukkit servers below 1.10.
Implemented 2 new permissions nodes to allow players to view other's enderchest and inventory without edit perms.
Added a safety check on player join event to prevent double trigger of sync task if the buggy bukkit login event triggers twice, possible causing inventory loss.
No config changes!
Perms added: MPDB.cmd.enderchest.others - Access to view others enderchest without edit permissions.
MPDB.cmd.inventory.others - Access to view others inventory without edit permissions.
Improvements to potion effects sync data handling.
Added a new function to the API that allows you to check if the player is online, it will check the status on the database and tell you if the player is online on any servers in sync.
Implemented a new function in all API events so you can check if the player joined for the first time.
Implemented API so you can check at any time if a player joined for the first time.
Implemented API to check and change players money saved in the database.
Implemented a new feature: New Players Commands, this will allow you to run configured commands for new players after sync is complete. This is configurable in the config.
Config changes:
Added settings for new players commands. Check sample config for details. You will need to change the default settings as new players will get the sample commands by default.
on Line 120:
#Commands that will run for players that join for the first time. Commands will be executed as console after sync is complete. #Supports multiple commands. The tag <PlayerName> will be replaced by the player name that joined for the first time. #To disable this feature just remove all commands. New-Players-Cmd: - 'tell <PlayerName> Cmd 1 sample - you should remove this from the MPDB config'
- 'tell <PlayerName> Cmd 2 sample - you should remove this from the MPDB config'
Big changes to mysql connection to allow older mysql server versions to work, note that older versions will not support special characters to be saved. Also some performance settings improvements.
Server reload command is no longer blocked, I still don't recommend it and a clean server restart is always better.
Tweaks to import data command to try to prevent out of memory error on large player base.
Changed database connection character encoding to UTF8 to allow saving of special characters.
Doing stop or restart commands will force save online players data and kick them to safely save all data to database before plugins will start to disable.
Added support for spigot 1.13 pre7. This adds early 1.13 compatibility, note that further 1.13 testing will still be required but most likely the plugin will be 1.13 compatible even after release.
Fixed warnings with SSL connections on new mysql versions.
Small improvements to the mysql connection handler class.
Added support for QuickShop offline buy orders, however this will not work at this time as there is a bug on QuickShop that does not trigger the shop transaction event on shops where players sell items. Once it will be fixed by QuickShop dev it will work fine with this plugin.
NOTE! You need to re-generate the config file to get the new settings and prevent errors!
Changes:
Added support for AuctionHouse plugin for offline sales.
Added support for ShopChest plugin, however it is not functional at this time as we discovered an issue in it's API during testing, the problem was reported to the plugin dev and will be fixed in a next update, after that we will fully enable support, as the code only needs testing.
Some small tweaks to sync timings to allow more time for successful sync if needed.
Small timing changes to clear inventory before sync is complete for inventory.
Inventory interact will not be allowed until sync is complete, only for inventory sync.
Config changes:
Added settings to enable support for AuctionHouse plugin.
Added settings to enable support for ShopChest plugin. (But not functional yet!)