1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-19 19:25:45 +00:00

chore(cmd): 移除单String参数的SubCommand构造函数

This commit is contained in:
Carm Jos 2022-07-10 05:36:30 +08:00
parent b7e9295685
commit 6e555a700f

View File

@ -13,16 +13,11 @@ public abstract class SubCommand implements NamedExecutor {
private final String name;
private final List<String> aliases;
public SubCommand(String name) {
this(name, new String[0]);
}
public SubCommand(String name, String... aliases) {
this.name = name;
this.aliases = Arrays.asList(aliases);
}
@Override
public String getName() {
return this.name;