mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-21 06:11:19 +01:00
Fix the "value already present" error
This commit is contained in:
parent
50f90cb9ec
commit
6bbfc93b27
@ -30,7 +30,8 @@ public class ShopRefundListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
UUID owner = NameManager.getUUID(event.getSign().getLine(NAME_LINE));
|
||||
String ownerName = NameManager.getFullUsername(event.getSign().getLine(NAME_LINE));
|
||||
UUID owner = NameManager.getUUID(ownerName);
|
||||
|
||||
CurrencyAddEvent currencyEvent = new CurrencyAddEvent(BigDecimal.valueOf(refundPrice), owner, event.getSign().getWorld());
|
||||
ChestShop.callEvent(currencyEvent);
|
||||
|
@ -59,7 +59,7 @@ public class NameManager {
|
||||
UUID uuid = account.getUuid();
|
||||
|
||||
if (uuid != null) {
|
||||
usernameToUUID.put(username, uuid);
|
||||
usernameToUUID.put(account.getName(), uuid);
|
||||
}
|
||||
|
||||
return uuid;
|
||||
|
Loading…
Reference in New Issue
Block a user