diff --git a/pom.xml b/pom.xml
index 403c641..c9c3010 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
net.milkbowl.vault
vaultapi
- 2.0-SNAPSHOT
+ 2.0-SNAPSHOT-PRE
VaultAPI
Vault is a Permissions & Economy API to allow plugins to more easily hook into these systems without needing to hook each individual system themselves.
diff --git a/src/main/java/net/milkbowl/vault/economy/IdentityEconomy.java b/src/main/java/net/milkbowl/vault/economy/IdentityEconomy.java
index 96681f9..7ae5372 100644
--- a/src/main/java/net/milkbowl/vault/economy/IdentityEconomy.java
+++ b/src/main/java/net/milkbowl/vault/economy/IdentityEconomy.java
@@ -36,7 +36,7 @@ public interface IdentityEconomy extends Economy{
/**
* Used to determine if IdentityEconomy was built through
* the EconomyWrapper as a LegacyEconomy.
- * If true, method {@link #getAllRecords()} will not be work.
+ * If false, method {@link #getAllRecords()} will not be work.
* This was made in order to support plugins which use older versions of VaultAPI/Vault.
* You can also use it / override it to disable previous mentioned methods!
* @return true if operation is supported
@@ -46,13 +46,24 @@ public interface IdentityEconomy extends Economy{
/**
* Used to determine if IdentityEconomy was built through
* the EconomyWrapper as a LegacyEconomy.
- * If true, the method {@link #getAllOnline()} (UUID)} will not be work.
+ * If false, the method {@link #getAllOnline()} (UUID)} will not be work.
* This was made in order to support plugins which use older versions of VaultAPI/Vault.
* You can also use it / override it to disable previous mentioned methods!
* @return true if operation is supported
*/
public boolean supportsAllOnlineOperation();
+ /**
+ * Used to determine if IdentityEconomy was built through
+ * the EconomyWrapper as a LegacyEconomy.
+ * If false, all operations must be done with players that
+ * are online/connected to the server in real time.
+ * If true, you should expect to call these operations
+ * asynchronously.
+ * @return true if operation is supported
+ */
+ public boolean supportsOfflineOperations();
+
/*
* Account-related methods follow.
*/
diff --git a/src/main/java/net/milkbowl/vault/economy/LegacyEconomy.java b/src/main/java/net/milkbowl/vault/economy/LegacyEconomy.java
index 2c6e739..f95eff8 100644
--- a/src/main/java/net/milkbowl/vault/economy/LegacyEconomy.java
+++ b/src/main/java/net/milkbowl/vault/economy/LegacyEconomy.java
@@ -23,6 +23,11 @@ public class LegacyEconomy implements IdentityEconomy {
return false;
}
+ @Override
+ public boolean supportsOfflineOperations(){
+ return false;
+ }
+
@Override
public boolean isEnabled() {
return economy.isEnabled();