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