mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-03 15:33:22 +01:00
24 lines
570 B
Java
24 lines
570 B
Java
|
package com.Acrobot.iConomyChestShop.Protection;
|
||
|
|
||
|
import org.bukkit.block.Block;
|
||
|
import org.bukkit.entity.Player;
|
||
|
|
||
|
/**
|
||
|
* @author Acrobot
|
||
|
*/
|
||
|
public class Security {
|
||
|
public static Protection protection = new Default();
|
||
|
|
||
|
public static boolean protect(String name, Block block){
|
||
|
return protection.protect(name, block);
|
||
|
}
|
||
|
|
||
|
public static boolean canAccess(Player player, Block block){
|
||
|
return protection.canAccess(player, block);
|
||
|
}
|
||
|
|
||
|
public static boolean isProtected(Block block){
|
||
|
return protection.isProtected(block);
|
||
|
}
|
||
|
}
|