Merge the multiple static blocks

This commit is contained in:
extendedclip 2020-07-14 10:24:01 -04:00
parent f205146c75
commit f9f59f1f96
1 changed files with 2 additions and 5 deletions

View File

@ -51,15 +51,12 @@ public final class CommandHandler implements CommandExecutor {
if (comparison == -1) return 1;
return 0;
});
Objects.requireNonNull(PlaceholderAPIPlugin.getInstance().getCommand("placeholderapi"))
.setTabCompleter(new CompletionHandler(COMMANDS));
}
private static final Pattern SPACE_PATTERN = Pattern.compile(" ");
static {
Objects.requireNonNull(PlaceholderAPIPlugin.getInstance().getCommand("placeholderapi"))
.setTabCompleter(new CompletionHandler(COMMANDS));
}
@Override
public boolean onCommand(@NotNull final CommandSender sender, @NotNull final org.bukkit.command.Command bukkitCommand,
@NotNull final String name, @NotNull String[] args) {