started adding command template

This commit is contained in:
sekwah 2018-01-18 06:28:51 +00:00 committed by Sekwah
parent ec59854850
commit 4d9f1a2635
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;
/**
* Subcommand that can be registered to parts.
* Subcommand that can be registered under e.g. /portal show or /portal edit
*
* @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);
}