9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2026-01-06 15:42:07 +00:00

Cleaned up /eagive tabcomplete instantiation

This commit is contained in:
Auxilor
2021-02-19 12:37:41 +00:00
parent 73a6fe8c1f
commit 20400547b8
2 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ public class CommandEagive extends AbstractCommand {
@Override
public @Nullable AbstractTabCompleter getTab() {
return new TabcompleterEagive();
return new TabcompleterEagive(this);
}
@Override

View File

@@ -1,6 +1,5 @@
package com.willfp.ecoarmor.commands;
import com.willfp.eco.util.command.AbstractCommand;
import com.willfp.eco.util.command.AbstractTabCompleter;
import com.willfp.eco.util.config.updating.annotations.ConfigUpdater;
import com.willfp.ecoarmor.sets.ArmorSets;
@@ -16,7 +15,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
public class TabcompleterEagive extends AbstractTabCompleter {
@@ -46,9 +44,11 @@ public class TabcompleterEagive extends AbstractTabCompleter {
/**
* Instantiate a new tab-completer for /eagive.
*
* @param command Instance of /eagive.
*/
public TabcompleterEagive() {
super((AbstractCommand) Objects.requireNonNull(Bukkit.getPluginCommand("eagive")).getExecutor());
public TabcompleterEagive(@NotNull final CommandEagive command) {
super(command);
reload();
}