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);
}