Package org.sgrewritten.stargate.util
Class EconomyHelper
java.lang.Object
org.sgrewritten.stargate.util.EconomyHelper
A helper class for dealing with economy
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
shouldChargePlayer
(org.bukkit.entity.Player player, Portal portal, BypassPermission bypassPermission) Checks whether the given player should be charged for destroying a portal
-
Method Details
-
shouldChargePlayer
public static boolean shouldChargePlayer(org.bukkit.entity.Player player, Portal portal, BypassPermission bypassPermission) Checks whether the given player should be charged for destroying a portal- Parameters:
player
-The player to check
portal
-The portal the player is trying to do something with
bypassPermission
-The bypass permission that would let the player avoid payment
- Returns:
True if the player should be charged
-