mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +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
@@ -125,7 +125,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
||||
}
|
||||
|
||||
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()
|
||||
@@ -137,7 +137,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
||||
public @NotNull List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user) {
|
||||
// Return every public home name as username.home_name from the cache
|
||||
final List<String> publicHomes = new ArrayList<>();
|
||||
plugin.getCache().publicHomes.forEach((ownerName, homeNames) ->
|
||||
plugin.getCache().getPublicHomes().forEach((ownerName, homeNames) ->
|
||||
homeNames.forEach(homeName -> publicHomes.add(ownerName + "." + homeName)));
|
||||
return args.length > 1 ? Collections.emptyList() : publicHomes
|
||||
.stream()
|
||||
|
||||
Reference in new issue
Block a user