feat: 兼容1.0.0
This commit is contained in:
@@ -13,16 +13,30 @@ import java.util.stream.Collectors;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public abstract class ParentCommand extends ChildCommand {
|
||||
@NotNull
|
||||
private final String name;
|
||||
@NotNull
|
||||
private final List<ChildCommand> childCommands;
|
||||
|
||||
public ParentCommand() {
|
||||
name = "unset";
|
||||
childCommands = new ArrayList<>();
|
||||
}
|
||||
|
||||
public ParentCommand(@NotNull String name) {
|
||||
this.name = name;
|
||||
childCommands = new ArrayList<>();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public abstract JavaPlugin getPlugin();
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public ParentCommand getParent() {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user