Package wbs.utils.util.pluginhooks
Class WbsRegionUtils
java.lang.Object
wbs.utils.util.pluginhooks.WbsRegionUtils
A static class that centralizes calls to
WbsRegionHooks, allowing
all installed supported plugins to be queried at once-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBuildAt(org.bukkit.Location loc, org.bukkit.entity.Player player) Check if the given player can build in the given locationstatic booleancanDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim) Check if the attacking entity is allowed to damage the victim
-
Method Details
-
canBuildAt
public static boolean canBuildAt(org.bukkit.Location loc, org.bukkit.entity.Player player) Check if the given player can build in the given location- Parameters:
loc- The location to checkplayer- The player to check for- Returns:
- True if the player can build at that location
-
canDealDamage
public static boolean canDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim) Check if the attacking entity is allowed to damage the victim- Parameters:
attacker- The entity attempting to deal damagevictim- The entity being damaged- Returns:
- True if the attacker can damage the victim
-