mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
16 lines
315 B
Java
16 lines
315 B
Java
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 String execute(CommandArgs args);
|
|
|
|
}
|