InventorySaver | SQLite/MySQL | AUTOMATIC SAVE INVENTORIES | SEARCH, OFFLINE EDIT, HISTORY BROWSE
InventorySaver | SQLite/MySQL | AUTOMATIC SAVE INVENTORIES | SEARCH, OFFLINE EDIT, HISTORY BROWSE
BETA

Improved sync function, complete async no data loss/duplicate

3 years ago
0

This is not a stable release, it is the public BETA release for testing, bugs, and errors are expected. Please don't use this version if you do not want to participate in testing. Wait for a first stable release. Currently only 1.13.* - 1.17.* version is supported.

Please read the description! This update requires manual query execution on the database when you use the BETA version before!

  • Sync function is improved, now it is complete async, due to this, settings below is complete ignored
  Event:
    Login:
      #The delay in ms how much time plugin wait before create a request to load inventory from database
      delay: 20
    Logout:
      #Make async logout event async, this can boost your server when you have lots of logouts, but when players switch between servers fast and database is slow, there could by item loss or duplicate!
      async: false
  • Sync function now uses "lock" system, this exclusion of data loss/duplicate based on data transform from server to server
  • Sync function is now saving all players before server reload and server stop

When you use any old BETA release and you want to update to this BERA release, you must also execute the query below, before you start the server. The default table prefix is used, when you used a custom prefix, please edit tables (PREFIX_sync_players, PREFIX_sync_inventories, PREFIX_sync_enderchests).

ALTER TABLE `invsave_sync_players` DROP INDEX uuid;
CREATE UNIQUE INDEX uuid ON `invsave_sync_players` (uuid);
ALTER TABLE `invsave_sync_inventories` DROP INDEX uuid;
CREATE UNIQUE INDEX uuid ON `invsave_sync_inventories` (uuid);
ALTER TABLE `invsave_sync_enderchests` DROP INDEX uuid;
CREATE UNIQUE INDEX uuid ON `invsave_sync_enderchests` (uuid);

Please be careful, BETA release can be incompatible with the next beta releases.

Planned features for syncing in the next release are more configuration and fixing bugs. Do you have some tips? Write me a PM on the spigot, please! Thank you.

Download