mirror of
https://e.coding.net/circlecloud/JumpPlate.git
synced 2025-11-25 19:46:01 +00:00
@@ -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);
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user