feat: 兼容1.0.0

This commit is contained in:
2023-10-25 21:10:28 +08:00
parent 6079f4d930
commit 6547e7e5d7

View File

@@ -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;