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:
@@ -47,7 +47,7 @@ public class EconomyOperations {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!UUIDVaultManager.getInstance().vaultExists(player.getUniqueId(), number)) {
|
||||
if (!UUIDVaultManager.getInstance().vaultExists(player.getUniqueId().toString(), number)) {
|
||||
return payToCreate(player);
|
||||
} else {
|
||||
double cost = BUKKIT_CONFIG.getDouble("economy.cost-to-open", 10);
|
||||
|
||||
Reference in New Issue
Block a user