diff --git a/eco-api/src/main/java/com/willfp/eco/core/command/CommandBase.java b/eco-api/src/main/java/com/willfp/eco/core/command/CommandBase.java index d0c0b8d1..b098f688 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/command/CommandBase.java +++ b/eco-api/src/main/java/com/willfp/eco/core/command/CommandBase.java @@ -55,6 +55,12 @@ public interface CommandBase { */ @NotNull List getSubcommands(); + /** + * Intended for returning the enclosing CommandBase, + * when this instance is serving as the delegate command base. + * + * @return the wrapping object of this delegate. + */ @NotNull CommandBase getWrapped(); /** diff --git a/eco-api/src/main/java/com/willfp/eco/core/command/impl/DelegatedBukkitCommand.java b/eco-api/src/main/java/com/willfp/eco/core/command/impl/DelegatedBukkitCommand.java index 42a0dab1..d9cd2832 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/command/impl/DelegatedBukkitCommand.java +++ b/eco-api/src/main/java/com/willfp/eco/core/command/impl/DelegatedBukkitCommand.java @@ -1,6 +1,5 @@ package com.willfp.eco.core.command.impl; -import java.util.List; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.PluginIdentifiableCommand; @@ -9,12 +8,14 @@ import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -@Deprecated(forRemoval = true) +import java.util.List; + /** * Delegates a bukkit command to an eco command (for registrations). */ +@Deprecated(forRemoval = true) public final class DelegatedBukkitCommand extends Command implements TabCompleter, - PluginIdentifiableCommand { + PluginIdentifiableCommand { /** * The delegate command. @@ -34,16 +35,16 @@ public final class DelegatedBukkitCommand extends Command implements TabComplete @Override public boolean execute(@NotNull final CommandSender commandSender, - @NotNull final String label, - @NotNull final String[] args) { + @NotNull final String label, + @NotNull final String[] args) { return false; } @Override public List onTabComplete(@NotNull final CommandSender commandSender, - @NotNull final Command command, - @NotNull final String label, - @NotNull final String[] args) { + @NotNull final Command command, + @NotNull final String label, + @NotNull final String[] args) { return List.of(); }