Push current work
This commit is contained in:
parent
a9fdb95c39
commit
6852af1e5f
2 changed files with 0 additions and 15 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue