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:
parent
ce64ad40d2
commit
c23203abc2
@ -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();
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user