mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 10:45:22 +01:00
This commit is contained in:
parent
885d2449d9
commit
ef58838c41
@ -158,7 +158,7 @@ public class PlayersManager {
|
||||
return "";
|
||||
}
|
||||
return names.loadObjects().stream().filter(n -> n.getUuid().equals(playerUUID)).findFirst()
|
||||
.map(Names::getUniqueId).orElse(null);
|
||||
.map(Names::getUniqueId).orElse("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -389,6 +389,7 @@ public class PlayersManagerTest {
|
||||
assertTrue(pm.getName(null).isEmpty());
|
||||
String name = pm.getName(uuid);
|
||||
assertEquals("tastybento", name);
|
||||
assertEquals("", pm.getName(UUID.randomUUID()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user