mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
1 parent
1dc45b8286
commit
b7cf0fa590
18 files changed
+111
-67
No files matched your search
@@ -69,7 +69,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
||||
}
|
||||
|
||||
private void teleportToNamedHome(@NotNull OnlineUser teleporter, @NotNull User owner, @NotNull String homeName) {
|
||||
final boolean otherHome = !owner.uuid.equals(teleporter.uuid);
|
||||
final boolean otherHome = !owner.equals(teleporter);
|
||||
plugin.getDatabase()
|
||||
.getHome(owner, homeName)
|
||||
.thenAccept(homeResult -> homeResult.ifPresentOrElse(home -> {
|
||||
@@ -114,7 +114,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
||||
.orElse(null)),
|
||||
() -> matchedHome.set(plugin.getDatabase().getPublicHomes().join()
|
||||
.stream()
|
||||
.filter(home -> home.owner.uuid.equals(playerToTeleport.uuid) && home.meta.name.equalsIgnoreCase(args[1]))
|
||||
.filter(home -> home.owner.equals(playerToTeleport) && home.meta.name.equalsIgnoreCase(args[1]))
|
||||
.findFirst()
|
||||
.orElse(null)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user