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:
@@ -126,7 +126,7 @@ public class PlayerVaults extends JavaPlugin {
|
||||
Inventory inventory = player.getOpenInventory().getTopInventory();
|
||||
if (inventory.getViewers().size() == 1) {
|
||||
VaultViewInfo info = this.inVault.get(player.getUniqueId().toString());
|
||||
VaultManager.getInstance().saveVault(inventory, player.getUniqueId(), info.getNumber());
|
||||
VaultManager.getInstance().saveVault(inventory, player.getUniqueId().toString(), info.getNumber());
|
||||
this.openInventories.remove(info.toString());
|
||||
// try this to make sure that they can't make further edits if the process hangs.
|
||||
player.closeInventory();
|
||||
|
||||
Reference in New Issue
Block a user