Added IdentityEconomy#supportsUUIDOperations

This commit is contained in:
lbenav8095 2023-04-01 13:30:16 -06:00
parent 6645e88aa5
commit a851a9f409
2 changed files with 14 additions and 0 deletions

View File

@ -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.
*/

View File

@ -28,6 +28,11 @@ public class LegacyEconomy implements IdentityEconomy {
return false;
}
@Override
public boolean supportsUUIDOperations(){
return false;
}
@Override
public boolean isEnabled() {
return economy.isEnabled();