mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-12-23 05:08:47 +00:00
修复update命令更新源错误...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
c5edf07ad6
commit
557a15e246
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user