Class PortalDestructionHelper

java.lang.Object
org.sgrewritten.stargate.util.portal.PortalDestructionHelper

public final class PortalDestructionHelper extends Object
A helper class for removing an existing portal
  • Method Details

    • destroyPortalIfHasPermissionAndCanPay

      public static boolean destroyPortalIfHasPermissionAndCanPay(org.bukkit.entity.Player player, Portal portal, Runnable destroyAction, LanguageManager languageManager, StargateEconomyAPI economyManager)
      Destroys a portal if the entity has permission and can pay any fees
      Parameters:
      player -

      The player that initiated the destruction

      portal -

      The portal to be destroyed

      destroyAction -

      The action to run if the destruction is performed

      Returns:

      True if the destruction has been cancelled