mirror of
https://e.coding.net/circlecloud/ProtectItem.git
synced 2025-11-24 23:56:08 +00:00
@@ -35,11 +35,11 @@ public class Main extends JavaPlugin {
|
|||||||
if (getConfig().getBoolean("Protect.Place", true))
|
if (getConfig().getBoolean("Protect.Place", true))
|
||||||
Bukkit.getPluginManager().registerEvents(
|
Bukkit.getPluginManager().registerEvents(
|
||||||
new PlaceBlockListen(this), this);
|
new PlaceBlockListen(this), this);
|
||||||
getLogger().info("BanDropDirt已加载!");
|
getLogger().info("ProtectItem已加载!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkevent(Player p, String i, String type) {
|
public boolean checkevent(Player p, String i, String type) {
|
||||||
if (p.hasPermission("bdd.bypass"))
|
if (p.hasPermission("pi.bypass"))
|
||||||
return false;
|
return false;
|
||||||
Location l = p.getLocation();
|
Location l = p.getLocation();
|
||||||
World pw = l.getWorld();
|
World pw = l.getWorld();
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
name: BanDropDirt
|
name: ProtectItem
|
||||||
main: com.github.j502647092.BanDropDirt.Main
|
main: cn.CityCraft.ProtectItem.Main
|
||||||
version: 1.0
|
version: 1.0
|
||||||
|
permissions:
|
||||||
|
pi.bypass:
|
||||||
|
default: op
|
||||||
Reference in New Issue
Block a user