diff --git a/src/com/sekwah/advancedportals/core/api/commands/SubCommand.java b/src/com/sekwah/advancedportals/core/api/commands/SubCommand.java index 840bb8aa..385b5897 100644 --- a/src/com/sekwah/advancedportals/core/api/commands/SubCommand.java +++ b/src/com/sekwah/advancedportals/core/api/commands/SubCommand.java @@ -5,7 +5,7 @@ import com.sekwah.advancedportals.coreconnector.container.CommandSenderContainer import java.util.List; /** - * Subcommand that can be registered to parts. + * Subcommand that can be registered under e.g. /portal show or /portal edit * * @author sekwah41 */ diff --git a/src/com/sekwah/advancedportals/core/commands/CommandTemplate.java b/src/com/sekwah/advancedportals/core/commands/CommandTemplate.java new file mode 100644 index 00000000..1831ccd5 --- /dev/null +++ b/src/com/sekwah/advancedportals/core/commands/CommandTemplate.java @@ -0,0 +1,18 @@ +package com.sekwah.advancedportals.core.commands; + +import com.sun.corba.se.impl.activation.CommandHandler; + +import java.util.List; + +/** + * Already know spigot's auto complete possibilities + * + * Sponge https://docs.spongepowered.org/stable/en/plugin/commands/arguments.html#custom-command-elements + */ +public interface CommandTemplate { + + void onCommand(CommandHandler sender, String[] args); + + List onTabComplete(CommandHandler sender, String[] args); + +}