Cleaned up /talgive code

This commit is contained in:
Auxilor
2021-02-16 15:14:33 +00:00
parent 00380c1826
commit 3f87698407
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ public class CommandTalgive extends AbstractCommand {
@Override
public @Nullable AbstractTabCompleter getTab() {
return new TabcompleterTalgive();
return new TabcompleterTalgive(this);
}
@Override

View File

@@ -1,6 +1,5 @@
package com.willfp.talismans.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.talismans.talismans.Talisman;
@@ -14,7 +13,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
public class TabcompleterTalgive extends AbstractTabCompleter {
@@ -25,9 +23,11 @@ public class TabcompleterTalgive extends AbstractTabCompleter {
/**
* Instantiate a new tab-completer for /talgive.
*
* @param command Instance of /talgive.
*/
public TabcompleterTalgive() {
super((AbstractCommand) Objects.requireNonNull(Bukkit.getPluginCommand("talgive")).getExecutor());
public TabcompleterTalgive(@NotNull final CommandTalgive command) {
super(command);
}
/**