mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-07 03:19:54 +01:00
started adding command template
This commit is contained in:
parent
22c2e20d3c
commit
854c06eba3
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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