-
@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface MCommand
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 String
description
The description of this command.String
name
The name of this command.String
noPermissionMessage
If this command non have permission.String
permission
The permission of this command.Class<? extends CommandProvider>
provider
The provider using.String
usage
The Usage of current commands
-
-
-
元素详细资料
-
name
String name
The name of this command.If it is empty. then will use Class/Method name.
- 返回:
- The name of this command.
- 默认值:
- ""
-
-
-
description
String description
The description of this command.- 返回:
- The description of this command.
- 默认值:
- ""
-
-
-
usage
String usage
The Usage of current commands- 返回:
- 默认值:
- ""
-
-
-
permission
String permission
The permission of this command.- 返回:
- The permission need check.
- 默认值:
- ""
-
-
-
noPermissionMessage
String noPermissionMessage
If this command non have permission. Them will send this message to sender.- 返回:
- The message will send back if sender don't have permission.
- 默认值:
- ""
-
-
-
provider
Class<? extends CommandProvider> provider
The provider using.- 返回:
- The provider of this command.
- 默认值:
- cn.mcres.karlatemp.mxlib.command.CommandProvider.class
-
-