use new mothed...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-09-30 18:30:18 +08:00
parent 597d1337f1
commit faba49980d

View File

@ -48,9 +48,9 @@ public class CommandInfo extends BaseCommand {
sender.sendMessage("§6插件作者: §3" + StringUtils.join(desc.getAuthors(), " ")); sender.sendMessage("§6插件作者: §3" + StringUtils.join(desc.getAuthors(), " "));
sender.sendMessage("§6插件描述: §3" + (desc.getDescription() == null ? "" : desc.getDescription())); sender.sendMessage("§6插件描述: §3" + (desc.getDescription() == null ? "" : desc.getDescription()));
sender.sendMessage("§6插件依赖: §3" + (desc.getDepend().size() == 0 ? "" : "")); sender.sendMessage("§6插件依赖: §3" + (desc.getDepend().size() == 0 ? "" : ""));
StringUtil.sendStringArray(sender, desc.getDepend()); StringUtil.sendStringArray(sender, desc.getDepend(), "§6 - ");
sender.sendMessage("§6插件软依赖: §3" + (desc.getSoftDepend().size() == 0 ? "" : "")); sender.sendMessage("§6插件软依赖: §3" + (desc.getSoftDepend().size() == 0 ? "" : ""));
StringUtil.sendStringArray(sender, desc.getSoftDepend()); StringUtil.sendStringArray(sender, desc.getSoftDepend(), "§6 - ");
sender.sendMessage("§6插件物理路径: §3" + YumManager.plugman.getPluginFile(plugin).getAbsolutePath()); sender.sendMessage("§6插件物理路径: §3" + YumManager.plugman.getPluginFile(plugin).getAbsolutePath());
} else { } else {
sender.sendMessage("§4错误: §c插件 " + pluginname + " 不存在或已卸载!"); sender.sendMessage("§4错误: §c插件 " + pluginname + " 不存在或已卸载!");