Package dev.kitteh.factions.protection
Class Protection
java.lang.Object
dev.kitteh.factions.protection.Protection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandenyBuildOrDestroyBlock(org.bukkit.entity.Player player, org.bukkit.block.Block block, PermissibleAction permissibleAction, boolean notify) static booleandenyBuildOrDestroyBlock(org.bukkit.entity.Player player, org.bukkit.Location location, PermissibleAction permissibleAction, boolean notify) static booleandenyDamage(org.bukkit.entity.Entity damager, org.bukkit.entity.Entity damagee, boolean notify) static booleandenyExplode(@Nullable org.bukkit.entity.Entity boomer, FLocation location) static booleandenyInteract(org.bukkit.entity.Player player, org.bukkit.Location location) static booleandenyUseBlock(org.bukkit.entity.Player player, org.bukkit.Material material, org.bukkit.Location location, boolean notify) static booleandenyUseItem(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.Material material, boolean checkDenyList, boolean notify) static @Nullable PermissibleActionuseActionFromBlockType(org.bukkit.Material material)
-
Constructor Details
-
Protection
public Protection()
-
-
Method Details
-
useActionFromBlockType
-
denyBuildOrDestroyBlock
public static boolean denyBuildOrDestroyBlock(org.bukkit.entity.Player player, org.bukkit.block.Block block, PermissibleAction permissibleAction, boolean notify) -
denyBuildOrDestroyBlock
public static boolean denyBuildOrDestroyBlock(org.bukkit.entity.Player player, org.bukkit.Location location, PermissibleAction permissibleAction, boolean notify) -
denyExplode
-
denyInteract
public static boolean denyInteract(org.bukkit.entity.Player player, org.bukkit.Location location) -
denyUseBlock
public static boolean denyUseBlock(org.bukkit.entity.Player player, org.bukkit.Material material, org.bukkit.Location location, boolean notify) -
denyUseItem
public static boolean denyUseItem(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.Material material, boolean checkDenyList, boolean notify) -
denyDamage
public static boolean denyDamage(org.bukkit.entity.Entity damager, org.bukkit.entity.Entity damagee, boolean notify)
-