This commit is contained in:
parent
19a7495fe1
commit
930ce3ff46
7 changed files with 9 additions and 17 deletions
|
|
@ -7,7 +7,7 @@ import de.kentoj.kencommandapi.api.suggestion.SuggestionProvider;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public final class PlayerSuggestionProvider implements SuggestionProvider<CommandSource> {
|
||||
public final class PlayerSuggestionProvider<T extends CommandSource> implements SuggestionProvider<T> {
|
||||
|
||||
private final ProxyServer proxyServer;
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ public final class PlayerSuggestionProvider implements SuggestionProvider<Comman
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<String> suggest(CommandSource __) {
|
||||
public List<String> suggest(T __) {
|
||||
return proxyServer.getAllPlayers().stream()
|
||||
.map(Player::getUsername)
|
||||
.toList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue