mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-25 20:15:58 +01:00
started adding command template
This commit is contained in:
parent
ec59854850
commit
4d9f1a2635
@ -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
|
||||
*/
|
||||
|
@ -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);
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user