Push current work

This commit is contained in:
zontreck 2024-04-09 13:23:19 -07:00
parent a9fdb95c39
commit 6852af1e5f
2 changed files with 0 additions and 15 deletions

View file

@ -15,17 +15,4 @@ import java.util.List;
import java.util.concurrent.CompletableFuture;
public class HomesSuggestionProvider {
public static SuggestionProvider<CommandSourceStack> PROVIDER = (ctx,suggestionsBuilder)->{
Homes homes = HomesProvider.getHomesForPlayer(ctx.getSource().getPlayer().getUUID().toString());
List<String> homesList = new ArrayList<>();
for(Home home : homes.getList())
{
homesList.add(home.homeName);
}
return SharedSuggestionProvider.suggest((String[]) homesList.toArray(), suggestionsBuilder);
};
}