mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-17 12:36:53 +01:00
Merge the multiple static blocks
This commit is contained in:
parent
f205146c75
commit
f9f59f1f96
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user