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