1
0
mirror of https://e.coding.net/circlecloud/ProtectItem.git synced 2024-12-27 20:48:51 +00:00

增加并修改OP默认权限...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-04-28 17:00:00 +08:00
parent ce64ad40d2
commit c23203abc2
2 changed files with 8 additions and 5 deletions

View File

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

View File

@ -1,3 +1,6 @@
name: BanDropDirt
main: com.github.j502647092.BanDropDirt.Main
version: 1.0
name: ProtectItem
main: cn.CityCraft.ProtectItem.Main
version: 1.0
permissions:
pi.bypass:
default: op