Changes
- Added SQLite to replace flat file. (Beta) (Users who using flat file as player storage will automatically migrate to SQLite.)
- Added '/gmenu menuitem [player]' command to give player menu selector.
- Added command initialization for purchase cosmetic item and found loot from Mystery Box depending on permissions plugin.
- Renamed some item purchase lore placeholders. (Rename {MYSTERY_DUST} to {COST})
- Removed '/gmenu purge' command.
- Fixed bug - Paintball Gun Gadget can destroy grown potatoes, carrots, sweetberries & beetroots.
- Fixed bug - Some user unable to connect MySQL server.
- Fixed bug - Item cost discount is not working properly.
About files migration
Last year, we found that there are some issues while using flat files to store player data. One of the issues is we are using async mode to update player data which creates an issue when multiple modification in the same player file. There isn't a fix as we must utilize async mode otherwise will causing huge lag while saving a huge records such as 1000 Mystery Boxes. Now, we are moving flat files to SQLite to eliminate the issues.
If you are using file to store player data, all the files will be migrate automatically during the update. The migration processes are running in async mode which might takes a while to migrate all files depending on how many files do you have. It is recommended to purge old/inactive files before download this update. You may execute this command "
/gmenu purge t:<1d|1w|1m|1y>" to remove inactive files. Besides, we also recommend do not let player join in the server during migration process. It might cause data failed to migrate to SQLite due to player data is being created in SQLite database when player join in the server.
This is still a beta feature which you might get some error during play time. Please do not hesitate to contact me and report the issue. During the migration process, you might get some messages inform you that some of the corrupted files are failed to migrate. If you receive this message, you can contact me and I will help you to fix the issue.
Question About Migrating Data From SQLite to MySQL
Currently we did not provide an option to migrate your data from SQLite to MySQL. We will planned to add this feature in the future update.
New Command
- /gmenu menuitem [player]
- permission: gadgetsmenu.commands.menuitem
- alises: menuitem, menuselector, mi