diff --git a/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java b/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java index 2f1c26b..684c4fb 100644 --- a/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java +++ b/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java @@ -287,6 +287,11 @@ public class NameManager implements Listener { ChestShop.callEvent(queryEvent); Account account = queryEvent.getAccount(); if (account == null) { + // There is no account by the provided name, but it matches the player name + // Return true as they specified their own name and a new account should get created + if (player.getName().equalsIgnoreCase(name)) { + return true; + } ChestShop.logDebug(player.getName() + " cannot use the name " + name + " for a shop as no account with that name exists"); return false; }