Add options to disable tab completion and extend username completion, also limit the total number of username suggestions to 200 per request

This commit is contained in:
Alexander Söderberg
2020-05-23 17:20:09 +02:00
parent 3b7057ad4f
commit 6c6c2b57a1
3 changed files with 30 additions and 14 deletions

View File

@ -318,6 +318,9 @@ public class PaperListener implements Listener {
}
@EventHandler public void onAsyncTabCompletion(final AsyncTabCompleteEvent event) {
if (!Settings.Paper_Components.ASYNC_TAB_COMPLETION) {
return;
}
String buffer = event.getBuffer();
if (!(event.getSender() instanceof Player)) {
return;