From c23203abc237efc3fb383ba88ec1e3cc370bef7b Mon Sep 17 00:00:00 2001 From: j502647092 Date: Tue, 28 Apr 2015 17:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B6=E4=BF=AE=E6=94=B9OP?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9D=83=E9=99=90...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: j502647092 --- src/cn/CityCraft/ProtectItem/Main.java | 4 ++-- src/plugin.yml | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/cn/CityCraft/ProtectItem/Main.java b/src/cn/CityCraft/ProtectItem/Main.java index fc98dc2..9340bb3 100644 --- a/src/cn/CityCraft/ProtectItem/Main.java +++ b/src/cn/CityCraft/ProtectItem/Main.java @@ -35,11 +35,11 @@ public class Main extends JavaPlugin { if (getConfig().getBoolean("Protect.Place", true)) Bukkit.getPluginManager().registerEvents( new PlaceBlockListen(this), this); - getLogger().info("BanDropDirt已加载!"); + getLogger().info("ProtectItem已加载!"); } public boolean checkevent(Player p, String i, String type) { - if (p.hasPermission("bdd.bypass")) + if (p.hasPermission("pi.bypass")) return false; Location l = p.getLocation(); World pw = l.getWorld(); diff --git a/src/plugin.yml b/src/plugin.yml index 535bb67..818b47f 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,3 +1,6 @@ -name: BanDropDirt -main: com.github.j502647092.BanDropDirt.Main -version: 1.0 \ No newline at end of file +name: ProtectItem +main: cn.CityCraft.ProtectItem.Main +version: 1.0 +permissions: + pi.bypass: + default: op \ No newline at end of file