Skip to content

Commit

Permalink
Add getUUIDForFullName method in NameManager
Browse files Browse the repository at this point in the history
The getUUIDForFullName method was added in the NameManager class to retrieve the UUID for the given full name. The function retrieves the corresponding UUID from the fullNamesToUUID map after converting the provided name to lowercase.
  • Loading branch information
Feli499 committed Dec 29, 2023
1 parent 2e84c34 commit 2a0dbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java
Expand Up @@ -42,6 +42,10 @@ public static String getNameFor(Player player) {
return currentShortName.get(player.getUniqueId());
}

public static UUID getUUIDForFullName(String name) {
return fullNamesToUUID.get(name.toLowerCase());
}

public static UUID getUUIDFor(String shortName) {
if (Properties.ADMIN_SHOP_NAME.equalsIgnoreCase(shortName)) {
return adminShopUUID;
Expand Down

0 comments on commit 2a0dbea

Please sign in to comment.