From 00f78588ada6ea812dedea294f25d8470f5695c1 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sat, 6 Feb 2016 21:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9D=83=E9=99=90...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 4 ++-- src/main/java/cn/citycraft/JumpPlate/JumpPlate.java | 2 +- src/main/resources/plugin.yml | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index f56d5c9..eebb730 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 cn.citycraft JumpPlate - 1.0 + 1.1 JumpPlate ${project.name} @@ -54,7 +54,7 @@ http://ci.citycraft.cn:8080 - + &c修复跳板权限问题... DEBUG UTF-8 diff --git a/src/main/java/cn/citycraft/JumpPlate/JumpPlate.java b/src/main/java/cn/citycraft/JumpPlate/JumpPlate.java index 113c51c..afc23e9 100644 --- a/src/main/java/cn/citycraft/JumpPlate/JumpPlate.java +++ b/src/main/java/cn/citycraft/JumpPlate/JumpPlate.java @@ -43,7 +43,7 @@ public class JumpPlate extends JavaPlugin implements Listener, HandlerCommands { final Block loc_1 = gb.add(0.0D, -1.0D, 0.0D).getBlock(); final Block loc_2 = gb.add(0.0D, -1.0D, 0.0D).getBlock(); if (loc_1.getType() == Material.GLASS && loc_2.getType() == Material.LAPIS_BLOCK && ml.contains(loc.getType())) { - if (p.hasPermission("JumpPlate.reload")) { + if (p.hasPermission("JumpPlate.create")) { p.sendMessage(pluginname + config.getMessage("create")); } else { e.setCancelled(true); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 2ab3b2b..0edb7bc 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -15,6 +15,9 @@ permissions: ${project.artifactId}.use: description: ${project.artifactId} 使用! default: true + ${project.artifactId}.create: + description: 创建跳板权限! + default: op ${project.artifactId}.reload: description: 重新载入插件! default: op \ No newline at end of file