默认自动获取最新版本的插件...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-27 19:18:49 +08:00
parent 0bf5cd6a8b
commit cb386fd056

View File

@ -226,7 +226,7 @@ public class YumAPI {
final Map<Plugin, String> updatelist = UpdatePlugin.getList(); final Map<Plugin, String> updatelist = UpdatePlugin.getList();
if (updatelist.size() > 0) { if (updatelist.size() > 0) {
for (final Entry<Plugin, String> updateplugin : UpdatePlugin.getList().entrySet()) { for (final Entry<Plugin, String> updateplugin : UpdatePlugin.getList().entrySet()) {
updatefromyum(sender, updateplugin.getKey(), updateplugin.getValue()); updatefromyum(sender, updateplugin.getKey(), null);
} }
UpdatePlugin.getList().clear(); UpdatePlugin.getList().clear();
sender.sendMessage("§6更新: §c已下载所有需要插件的插件到 到update文件夹 重启后自动更新(或使用/yum upgrade直接升级)!"); sender.sendMessage("§6更新: §c已下载所有需要插件的插件到 到update文件夹 重启后自动更新(或使用/yum upgrade直接升级)!");