Accept Strings as inputs instead of UUIDs.

This leaves options for other plugins to hook into us to use our vault operations. I did a first shot of this with FactionsUUID.
* This needs to be tested more in depth before being pushed to a release version as it changes how we handle a lot of our dupe checks.
This commit is contained in:
Trent Hensler
2016-05-30 16:20:36 -07:00
parent 48206f552f
commit bc9d1091e1
11 changed files with 119 additions and 75 deletions
@@ -83,7 +83,7 @@ public class BackpackConverter implements Converter {
vault.setItem(Integer.parseInt(key.split(" ")[1]), item);
}
try {
vaults.saveVault(vault, uuid, intoVaultNum);
vaults.saveVault(vault, uuid.toString(), intoVaultNum);
converted++;
} catch (IOException e) {
plugin.getLogger().severe("Error converting Backpack: " + file.getName());