From 8eb47ee1113e910e6ffb8cb8f2da5b2997628959 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Mon, 18 Jul 2016 12:45:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=B8=AA?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=80=E4=B8=AA=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 5 +++-- src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 4f3255c..f118a7d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc TeleportRandom - 1.3 + 1.3.1 TeleportRandom ${project.name} @@ -59,7 +59,8 @@ &a代码重构版本 - &b1.3 - &c修复传送世界限制(区分大小写); + &b1.3.1 - &c修复上个版本一个逻辑错误...; + &b1.3 - &c修复传送世界限制(区分大小写)...; DEBUG UTF-8 diff --git a/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java b/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java index 9cf5d66..4aeff6c 100644 --- a/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java +++ b/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java @@ -45,7 +45,7 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor { randomTP(Integer.parseInt(args[0]), Bukkit.getWorld(args[1]), p); break; } - } catch (final Exception e) { + } catch (final IllegalArgumentException e) { sender.sendMessage(getPrefix() + "§c非法的参数或不存在的世界!"); } return true; @@ -85,7 +85,7 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor { p.sendMessage(String.format(getPrefix() + config.getMessage("Message.Wran"), lrLimit)); } } - final Point point = new Point(limit, world); + final Point point = new Point(lr, world); checkBlock(point, p); point.tp(p); }