Directive:Sponge的基于注释的命令框架

时间:2021-05-21 15:41:59
【文件属性】:
文件名称:Directive:Sponge的基于注释的命令框架
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-21 15:41:59
Java 指示 轻量级的,基于注释的Sponge命令框架 用法 创建命令 首先创建一个名为example的新命令 @Directive ( name = { " example " }, description = " An example command " , permission = " my.example.command " ) public static CommandResult exampleCommand( CommandSource src, CommandContext args) { src . sendMessage( Texts . of( " Hello Sender! " )); return CommandResult . success(); } 要将方法标记为指令命令,请向其添加@Directive批注。 该注释具有以下属性:名称,描述和权限。 名称
【文件预览】:
Directive-master
----LICENSE(7KB)
----src()
--------main()
----README.md(3KB)

网友评论