mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 22:38:46 +00:00
fix NullPointerException...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
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
Block a user