mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +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) {
|
public void update(final InvokeCommandEvent e) {
|
||||||
final String[] args = e.getArgs();
|
final String[] args = e.getArgs();
|
||||||
final CommandSender sender = e.getSender();
|
final CommandSender sender = e.getSender();
|
||||||
final String pluginname = args[0];
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
repo.updateRepositories(sender);
|
repo.updateRepositories(sender);
|
||||||
@ -273,6 +272,7 @@ public class YumCommand implements HandlerCommands {
|
|||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
|
final String pluginname = args[0];
|
||||||
final Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname);
|
final Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname);
|
||||||
sender.sendMessage("§a开始更新插件: " + pluginname);
|
sender.sendMessage("§a开始更新插件: " + pluginname);
|
||||||
if (plugin != null) {
|
if (plugin != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user