Class PortalDestructionHelper
java.lang.Object
org.sgrewritten.stargate.util.portal.PortalDestructionHelper
A helper class for removing an existing portal
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
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
-