1
0
mirror of https://e.coding.net/circlecloud/TeleportRandom.git synced 2024-11-01 07:38:47 +00:00

fix: 修复CD无效

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-29 10:53:09 +08:00
parent 74edabcf86
commit a25c7e4501
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId> <groupId>pw.yumc</groupId>
<artifactId>TeleportRandom</artifactId> <artifactId>TeleportRandom</artifactId>
<version>1.4.1</version> <version>1.4.2</version>
<name>TeleportRandom</name> <name>TeleportRandom</name>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
@ -59,6 +59,7 @@
<properties> <properties>
<update.description>&amp;a代码重构版本</update.description> <update.description>&amp;a代码重构版本</update.description>
<update.changes> <update.changes>
&amp;b1.4.2 - &amp;c修复CD只提示无限制的BUG...;
&amp;b1.4.1 - &amp;c修复AIOOBE错误...; &amp;b1.4.1 - &amp;c修复AIOOBE错误...;
&amp;b1.4 - &amp;a添加命令CD...; &amp;b1.4 - &amp;a添加命令CD...;
&amp;b1.3.2 - &amp;c修复上个版本的空指针错误...; &amp;b1.3.2 - &amp;c修复上个版本的空指针错误...;

View File

@ -90,6 +90,7 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor {
} }
if (!p.hasPermission("tpr.nocd") && cd.contains(p.getName())) { if (!p.hasPermission("tpr.nocd") && cd.contains(p.getName())) {
p.sendMessage(getPrefix() + config.getMessage("Message.CD")); p.sendMessage(getPrefix() + config.getMessage("Message.CD"));
return;
} }
if (!config.getStringList("AllowWorld").contains(world.getName())) { if (!config.getStringList("AllowWorld").contains(world.getName())) {
p.sendMessage(getPrefix() + config.getMessage("Message.NoPermWorld")); p.sendMessage(getPrefix() + config.getMessage("Message.NoPermWorld"));