Class WorldGuardRegionHook
java.lang.Object
wbs.utils.util.pluginhooks.region.WbsRegionHook
wbs.utils.util.pluginhooks.region.WorldGuardRegionHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim) Can the attacker damage the victim according to the associated plugin?booleancanPlayerBuild(org.bukkit.Location loc, org.bukkit.entity.Player player) Check if the given player can build at the given location.Methods inherited from class wbs.utils.util.pluginhooks.region.WbsRegionHook
enabled
-
Constructor Details
-
WorldGuardRegionHook
public WorldGuardRegionHook()
-
-
Method Details
-
canPlayerBuild
public boolean canPlayerBuild(org.bukkit.Location loc, org.bukkit.entity.Player player) Description copied from class:WbsRegionHookCheck if the given player can build at the given location.- Specified by:
canPlayerBuildin classWbsRegionHook- Parameters:
loc- The location to checkplayer- The player to verify against- Returns:
- True if the player may build there, false otherwise
-
canDealDamage
public boolean canDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim) Description copied from class:WbsRegionHookCan the attacker damage the victim according to the associated plugin?- Specified by:
canDealDamagein classWbsRegionHook- Parameters:
attacker- The attacking entityvictim- The entity being attacked- Returns:
- True if the attacker can damage the victim.
-
getRequiredPlugin
- Specified by:
getRequiredPluginin classWbsRegionHook- Returns:
- The name of the plugin to interact with
-