Command executing

This commit is contained in:
William committed 2022-05-26 23:56:14 +01:00
1 parent e335a48888
commit 83d5a921ee
7 files changed
+98 -29

No files matched your search

@@ -4,8 +4,6 @@ import net.william278.huskhomes.HuskHomes;
import net.william278.huskhomes.player.Player;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* Represents an abstract cross-platform representation for a plugin command
*/
@@ -47,15 +45,6 @@ public abstract class CommandBase {
*/
public abstract void onExecute(@NotNull Player player, @NotNull String[] args);
/**
* What should be returned when the player attempts to TAB-complete the command
*
* @param player {@link Player} doing the TAB completion
* @param args Current command arguments
* @return List of String arguments to offer TAB suggestions
*/
public abstract List<String> onTabComplete(@NotNull Player player, @NotNull String[] args);
/**
* Returns the localised description string of this command
*