mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2025-09-02 04:46:55 +00:00
@ -19,7 +19,8 @@ public class Yum extends JavaPlugin {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
download = new DownloadManager(this);
|
||||
this.getCommand("yum").setExecutor(new CommandHandler(this));
|
||||
this.getCommand("yum").setTabCompleter(new CommandHandler(this));
|
||||
CommandHandler cmdhandler = 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>();;
|
||||
/**
|
||||
* 插件主类
|
||||
*/
|
||||
|
Reference in New Issue
Block a user