mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
More refactor work, encapsulate classes
This commit is contained in:
1 parent
3e1ec09487
commit
1cebdac9b8
51 files changed
+756
-621
No files matched your search
@@ -111,7 +111,7 @@ public class HomeCommand extends CommandBase implements TabCompletable, ConsoleE
|
||||
}
|
||||
|
||||
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to "
|
||||
+ home.owner.username + "." + home.meta.name);
|
||||
+ home.getOwner().username + "." + home.getMeta().getName());
|
||||
Teleport.builder(plugin, playerToTeleport)
|
||||
.setTarget(home)
|
||||
.toTeleport()
|
||||
@@ -124,7 +124,7 @@ public class HomeCommand extends CommandBase implements TabCompletable, ConsoleE
|
||||
if (user == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return args.length > 1 ? Collections.emptyList() : plugin.getCache().homes
|
||||
return args.length > 1 ? Collections.emptyList() : plugin.getCache().getHomes()
|
||||
.getOrDefault(user.uuid, new ArrayList<>())
|
||||
.stream()
|
||||
.filter(s -> s.toLowerCase().startsWith(args.length == 1 ? args[0].toLowerCase() : ""))
|
||||
|
||||
Reference in new issue
Block a user