Class PlotSquaredRegionHook
java.lang.Object
wbs.utils.util.pluginhooks.region.WbsRegionHook
wbs.utils.util.pluginhooks.region.PlotSquaredRegionHook
-
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.booleanenabled()
-
Constructor Details
-
PlotSquaredRegionHook
public PlotSquaredRegionHook()
-
-
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
-
enabled
public boolean enabled()- Overrides:
enabledin classWbsRegionHook- Returns:
- True if the correct plugin is enabled
-