1
0
mirror of https://e.coding.net/circlecloud/TeleportRandom.git synced 2024-12-25 16:28:49 +00:00

feat: 修复上个版本一个逻辑错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-18 12:45:45 +08:00
parent d650e763f0
commit 8eb47ee111
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>TeleportRandom</artifactId>
<version>1.3</version>
<version>1.3.1</version>
<name>TeleportRandom</name>
<build>
<finalName>${project.name}</finalName>
@ -59,7 +59,8 @@
<properties>
<update.description>&amp;a代码重构版本</update.description>
<update.changes>
&amp;b1.3 - &amp;c修复传送世界限制(区分大小写);
&amp;b1.3.1 - &amp;c修复上个版本一个逻辑错误...;
&amp;b1.3 - &amp;c修复传送世界限制(区分大小写)...;
</update.changes>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

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