Skip to content

Commit

Permalink
Optional for last known name since it could not exist depending on ca…
Browse files Browse the repository at this point in the history
…lls done before.
  • Loading branch information
creatorfromhell committed Jun 12, 2024
1 parent b4ff409 commit 9f70379
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/milkbowl/vault2/economy/Economy.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;

import net.milkbowl.vault2.economy.EconomyResponse.ResponseType;
Expand Down Expand Up @@ -168,9 +169,10 @@ public interface Economy {
* messages to be more human-readable than UUIDs alone can provide.
*
* @param uuid UUID associated with the account.
* @return name of the account owner.
* @return An optional containing the last known name if the account exists, otherwise an empty
* optional.
*/
String getAccountName(UUID uuid);
Optional<String> getAccountName(UUID uuid);

/**
* Checks if this UUID has an account yet.
Expand Down

0 comments on commit 9f70379

Please sign in to comment.