mirror of https://e.coding.net/circlecloud/Yum.git
parent
c1cf312381
commit
bcf3a0e68e
|
@ -19,7 +19,8 @@ public class Yum extends JavaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
download = new DownloadManager(this);
|
download = new DownloadManager(this);
|
||||||
this.getCommand("yum").setExecutor(new CommandHandler(this));
|
CommandHandler cmdhandler = new CommandHandler(this);
|
||||||
this.getCommand("yum").setTabCompleter(new CommandHandler(this));
|
this.getCommand("yum").setExecutor(cmdhandler);
|
||||||
|
this.getCommand("yum").setTabCompleter(cmdhandler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class CommandHandler implements CommandExecutor, TabCompleter {
|
||||||
/**
|
/**
|
||||||
* 命令监听类列表
|
* 命令监听类列表
|
||||||
*/
|
*/
|
||||||
private List<BaseCommand> commandlist;
|
private List<BaseCommand> commandlist = new ArrayList<BaseCommand>();;
|
||||||
/**
|
/**
|
||||||
* 插件主类
|
* 插件主类
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue