mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 06:18:46 +00:00
fix: 修复命令未return的问题
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
60c08f0aca
commit
4a4cb932d7
@ -96,6 +96,7 @@ public class YumCommand implements Listener, CommandExecutor {
|
|||||||
final List<Files> lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id)));
|
final List<Files> lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id)));
|
||||||
if (lf.isEmpty()) {
|
if (lf.isEmpty()) {
|
||||||
sender.sendMessage(String.format(not_found_id_from_bukkit, id));
|
sender.sendMessage(String.format(not_found_id_from_bukkit, id));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
sender.sendMessage(filelistprefix);
|
sender.sendMessage(filelistprefix);
|
||||||
for (int i = 0; i < lf.size() || i < 8; i++) {
|
for (int i = 0; i < lf.size() || i < 8; i++) {
|
||||||
@ -136,6 +137,7 @@ public class YumCommand implements Listener, CommandExecutor {
|
|||||||
final List<Files> lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id)));
|
final List<Files> lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id)));
|
||||||
if (lf.isEmpty()) {
|
if (lf.isEmpty()) {
|
||||||
sender.sendMessage(String.format(not_found_id_from_bukkit, id));
|
sender.sendMessage(String.format(not_found_id_from_bukkit, id));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
final Files f = lf.get(0);
|
final Files f = lf.get(0);
|
||||||
final String url = f.downloadUrl;
|
final String url = f.downloadUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user