From 4a4cb932d7951c0bb571b8f0d8bcf0aea070789d Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 5 Aug 2016 10:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=9C=AAreturn=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/Yum/commands/YumCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/pw/yumc/Yum/commands/YumCommand.java b/src/main/java/pw/yumc/Yum/commands/YumCommand.java index 3474369..940d187 100644 --- a/src/main/java/pw/yumc/Yum/commands/YumCommand.java +++ b/src/main/java/pw/yumc/Yum/commands/YumCommand.java @@ -96,6 +96,7 @@ public class YumCommand implements Listener, CommandExecutor { final List lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id))); if (lf.isEmpty()) { sender.sendMessage(String.format(not_found_id_from_bukkit, id)); + return; } sender.sendMessage(filelistprefix); for (int i = 0; i < lf.size() || i < 8; i++) { @@ -136,6 +137,7 @@ public class YumCommand implements Listener, CommandExecutor { final List lf = Files.parseList(IOUtil.getData(String.format(BukkitDev.PLUGIN, id))); if (lf.isEmpty()) { sender.sendMessage(String.format(not_found_id_from_bukkit, id)); + return; } final Files f = lf.get(0); final String url = f.downloadUrl;