修复update命令更新源错误...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-03-01 20:50:47 +08:00
parent c5edf07ad6
commit 557a15e246

View File

@ -265,7 +265,6 @@ public class YumCommand implements HandlerCommands {
public void update(final InvokeCommandEvent e) {
final String[] args = e.getArgs();
final CommandSender sender = e.getSender();
final String pluginname = args[0];
switch (args.length) {
case 0:
repo.updateRepositories(sender);
@ -273,6 +272,7 @@ public class YumCommand implements HandlerCommands {
break;
case 1:
case 2:
final String pluginname = args[0];
final Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname);
sender.sendMessage("§a开始更新插件: " + pluginname);
if (plugin != null) {