From a25c7e4501f3613be136bd810e7d9e98a48f5de1 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 29 Jul 2016 10:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DCD=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 3 ++- src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3f2f022..b84edf3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc TeleportRandom - 1.4.1 + 1.4.2 TeleportRandom ${project.name} @@ -59,6 +59,7 @@ &a代码重构版本 + &b1.4.2 - &c修复CD只提示无限制的BUG...; &b1.4.1 - &c修复AIOOBE错误...; &b1.4 - &a添加命令CD...; &b1.3.2 - &c修复上个版本的空指针错误...; diff --git a/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java b/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java index fb30a7e..e29d18b 100644 --- a/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java +++ b/src/main/java/pw/yumc/TeleportRandom/TeleportRandom.java @@ -90,6 +90,7 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor { } if (!p.hasPermission("tpr.nocd") && cd.contains(p.getName())) { p.sendMessage(getPrefix() + config.getMessage("Message.CD")); + return; } if (!config.getStringList("AllowWorld").contains(world.getName())) { p.sendMessage(getPrefix() + config.getMessage("Message.NoPermWorld"));