Add configuration option to prevent player names from being suggested

This commit is contained in:
Riley Park
2017-06-09 07:24:24 -07:00
parent f0d3438c11
commit f7eff332be
3 changed files with 21 additions and 1 deletions

View File

@@ -2412,6 +2412,16 @@ public final class Bukkit {
public static boolean reloadCommandAliases() {
return server.reloadCommandAliases();
}
/**
* Checks if player names should be suggested when a command returns {@code null} as
* their tab completion result.
*
* @return true if player names should be suggested
*/
public static boolean suggestPlayerNamesWhenNullTabCompletions() {
return server.suggestPlayerNamesWhenNullTabCompletions();
}
// Paper end
@NotNull