Class TownyRegionHook

java.lang.Object
wbs.utils.util.pluginhooks.region.WbsRegionHook
wbs.utils.util.pluginhooks.region.TownyRegionHook

public class TownyRegionHook extends WbsRegionHook
  • Constructor Details

    • TownyRegionHook

      public TownyRegionHook()
  • Method Details

    • canPlayerBuild

      public boolean canPlayerBuild(org.bukkit.Location loc, org.bukkit.entity.Player player)
      Description copied from class: WbsRegionHook
      Check if the given player can build at the given location.
      Specified by:
      canPlayerBuild in class WbsRegionHook
      Parameters:
      loc - The location to check
      player - 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: WbsRegionHook
      Can the attacker damage the victim according to the associated plugin?
      Specified by:
      canDealDamage in class WbsRegionHook
      Parameters:
      attacker - The attacking entity
      victim - The entity being attacked
      Returns:
      True if the attacker can damage the victim.
    • getRequiredPlugin

      public String getRequiredPlugin()
      Specified by:
      getRequiredPlugin in class WbsRegionHook
      Returns:
      The name of the plugin to interact with