mirror of https://github.com/MilkBowl/VaultAPI.git
Added IdentityEconomy#supportsUUIDOperations
This commit is contained in:
parent
6645e88aa5
commit
a851a9f409
|
@ -64,6 +64,15 @@ public interface IdentityEconomy extends Economy{
|
|||
*/
|
||||
public boolean supportsOfflineOperations();
|
||||
|
||||
/**
|
||||
* Used to determine if IdentityEconomy was built through
|
||||
* the EconomyWrapper as a LegacyEconomy.
|
||||
* If false, you should expect UnsupportedOperationException
|
||||
* being thrown when calling these methods.
|
||||
* @return true if operation is supported
|
||||
*/
|
||||
public boolean supportsUUIDOperations();
|
||||
|
||||
/*
|
||||
* Account-related methods follow.
|
||||
*/
|
||||
|
|
|
@ -28,6 +28,11 @@ public class LegacyEconomy implements IdentityEconomy {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsUUIDOperations(){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return economy.isEnabled();
|
||||
|
|
Loading…
Reference in New Issue