started adding command template

This commit is contained in:
sekwah 2018-01-18 06:28:51 +00:00
parent 22c2e20d3c
commit 854c06eba3
2 changed files with 19 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import com.sekwah.advancedportals.coreconnector.container.CommandSenderContainer
import java.util.List; 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 * @author sekwah41
*/ */

View File

@ -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<String> onTabComplete(CommandHandler sender, String[] args);
}