Class DefaultCommand
- java.lang.Object
-
- com.ericlam.mc.bungee.hnmc.commands.caxerx.CommandNode
-
- com.ericlam.mc.bungee.hnmc.commands.caxerx.DefaultCommand
-
public class DefaultCommand extends CommandNode
父類指令預設器自動返回幫助訊息
- Author:
- caxerx
-
-
Constructor Summary
Constructors Constructor Description DefaultCommand(CommandNode parent, String command, String permission, String description, String... alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand(CommandSender sender, List<String> args)List<String>executeTabCompletion(CommandSender sender, List<String> args)-
Methods inherited from class com.ericlam.mc.bungee.hnmc.commands.caxerx.CommandNode
addAlias, addAllAliases, addSub, getAlias, getCommand, getDescription, getParent, getPermission, getPlaceholder, getSubCommands, invokeCommand, invokeTabCompletion, match
-
-
-
-
Constructor Detail
-
DefaultCommand
public DefaultCommand(CommandNode parent, String command, String permission, String description, String... alias)
- Parameters:
parent- 父類指令command- 指令permission- 權限description- 介紹alias- 縮寫
-
-
Method Detail
-
executeCommand
public void executeCommand(CommandSender sender, List<String> args)
- Specified by:
executeCommandin classCommandNode- Parameters:
sender- 指令發送者args- 指令參數
-
executeTabCompletion
public List<String> executeTabCompletion(CommandSender sender, List<String> args)
- Specified by:
executeTabCompletionin classCommandNode- Parameters:
sender- 指令發送者args- 指令參數- Returns:
- Tab 列
-
-