mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Add ability to resolve unsafe positions by UUID where the identifier would otherwise be unsafe (#356)
This commit is contained in:
1 parent
4bd0244891
commit
3c18214016
26 files changed
+188
-60
No files matched your search
@@ -65,8 +65,7 @@ public class HomesManager {
|
||||
@NotNull
|
||||
public List<String> getUserHomeNames() {
|
||||
return userHomes.entrySet().stream()
|
||||
.flatMap(e -> e.getValue().stream()
|
||||
.map(home -> home.getOwner().getUsername() + "." + home.getName()))
|
||||
.flatMap(e -> e.getValue().stream().map(Home::getIdentifier))
|
||||
.toList();
|
||||
}
|
||||
|
||||
@@ -83,7 +82,7 @@ public class HomesManager {
|
||||
@NotNull
|
||||
public List<String> getPublicHomeNames() {
|
||||
return publicHomes.stream()
|
||||
.map(home -> home.getOwner().getUsername() + "." + home.getName())
|
||||
.map(Home::getIdentifier)
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user