Rework operations to allow for owners of vaults to be Strings, which is more friendly to third party or group vaults. Fixes compatibility with FactionsUUID.

This commit is contained in:
Trent Hensler
2018-12-16 22:13:13 -08:00
parent 55cbea8582
commit 181bb89ac0
17 changed files with 121 additions and 124 deletions
@@ -64,7 +64,7 @@ public class BackpackConverter implements Converter {
continue; // No slots
}
Inventory vault = vaults.getVault(uuid, intoVaultNum);
Inventory vault = vaults.getVault(uuid.toString(), intoVaultNum);
if (vault == null) {
vault = plugin.getServer().createInventory(null, section.getKeys(false).size());
}
@@ -78,7 +78,7 @@ public class BackpackConverter implements Converter {
// Overwrite
vault.setItem(Integer.parseInt(key.split(" ")[1]), item);
}
vaults.saveVault(vault, uuid, intoVaultNum);
vaults.saveVault(vault, uuid.toString(), intoVaultNum);
converted++;
if (System.currentTimeMillis() - lastUpdate >= 1500) {