mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +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;
|
if (comparison == -1) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
private static final Pattern SPACE_PATTERN = Pattern.compile(" ");
|
|
||||||
|
|
||||||
static {
|
|
||||||
Objects.requireNonNull(PlaceholderAPIPlugin.getInstance().getCommand("placeholderapi"))
|
Objects.requireNonNull(PlaceholderAPIPlugin.getInstance().getCommand("placeholderapi"))
|
||||||
.setTabCompleter(new CompletionHandler(COMMANDS));
|
.setTabCompleter(new CompletionHandler(COMMANDS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final Pattern SPACE_PATTERN = Pattern.compile(" ");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(@NotNull final CommandSender sender, @NotNull final org.bukkit.command.Command bukkitCommand,
|
public boolean onCommand(@NotNull final CommandSender sender, @NotNull final org.bukkit.command.Command bukkitCommand,
|
||||||
@NotNull final String name, @NotNull String[] args) {
|
@NotNull final String name, @NotNull String[] args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user