From 5c83588b392aeea2d2436e383922e64a5cc7a503 Mon Sep 17 00:00:00 2001 From: xjboss2 Date: Mon, 11 Apr 2016 19:30:10 +0800 Subject: [PATCH] update TeleportRandom.java --- .../java/cn/citycraft/TeleportRandom/TeleportRandom.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java b/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java index 0834443..fcbe7d5 100644 --- a/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java +++ b/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java @@ -62,11 +62,11 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor { case 3: RandomTP(Integer.parseInt(args[1]),Bukkit.getWorld(args[2]),Bukkit.getPlayer(args[0])); break; - } catch (final Exception e) { + } + return true; + } catch (final Exception e) { sender.sendMessage(pluginname + "§c非法的参数或不存在的世界!"); - } - return true; - } + } } sender.sendMessage(pluginname + "§c非法的参数!"); return false;