1
0
mirror of https://e.coding.net/circlecloud/JumpPlate.git synced 2024-12-28 07:49:11 +00:00

版本升级 调整权限...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
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> <modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId> <groupId>cn.citycraft</groupId>
<artifactId>JumpPlate</artifactId> <artifactId>JumpPlate</artifactId>
<version>1.0</version> <version>1.1</version>
<name>JumpPlate</name> <name>JumpPlate</name>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
@ -54,7 +54,7 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description></update.description> <update.description>&amp;c修复跳板权限问题...</update.description>
<update.changes></update.changes> <update.changes></update.changes>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT> <env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <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_1 = gb.add(0.0D, -1.0D, 0.0D).getBlock();
final Block loc_2 = 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 (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")); p.sendMessage(pluginname + config.getMessage("create"));
} else { } else {
e.setCancelled(true); e.setCancelled(true);

View File

@ -15,6 +15,9 @@ permissions:
${project.artifactId}.use: ${project.artifactId}.use:
description: ${project.artifactId} 使用! description: ${project.artifactId} 使用!
default: true default: true
${project.artifactId}.create:
description: 创建跳板权限!
default: op
${project.artifactId}.reload: ${project.artifactId}.reload:
description: 重新载入插件! description: 重新载入插件!
default: op default: op