mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package emu.nebula.command;
|
||||
|
||||
public interface CommandHandler {
|
||||
|
||||
public default Command getData() {
|
||||
return this.getClass().getAnnotation(Command.class);
|
||||
}
|
||||
|
||||
public default String getLabel() {
|
||||
return getData().label();
|
||||
}
|
||||
|
||||
public void execute(CommandArgs args);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user