mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-01 09:51:55 +00:00
Implementing commands system into antivpn [v1.1]
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package dev.brighten.antivpn.command;
|
||||
|
||||
import dev.brighten.antivpn.AntiVPN;
|
||||
|
||||
public abstract class Command {
|
||||
|
||||
public Command() {
|
||||
for (Command child : children()) {
|
||||
AntiVPN.getInstance().getCommands().add(child);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract String permission();
|
||||
|
||||
public abstract String name();
|
||||
|
||||
public abstract String[] aliases();
|
||||
|
||||
public abstract String description();
|
||||
|
||||
public abstract String usage();
|
||||
|
||||
public abstract String parent();
|
||||
|
||||
public abstract Command[] children();
|
||||
|
||||
public abstract String execute(CommandExecutor executor, String[] args);
|
||||
}
|
||||
Reference in New Issue
Block a user