版本升级 调整权限...

Signed-off-by: 502647092 <jtb1@163.com>
master
502647092 2016-02-06 21:53:22 +08:00
parent 42a299ea4a
commit 00f78588ad
3 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId>
<artifactId>JumpPlate</artifactId>
<version>1.0</version>
<version>1.1</version>
<name>JumpPlate</name>
<build>
<finalName>${project.name}</finalName>
@ -54,7 +54,7 @@
</build>
<properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description></update.description>
<update.description>&amp;c修复跳板权限问题...</update.description>
<update.changes></update.changes>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

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

View File

@ -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